llvm/mlir/test/Conversion/TosaToLinalg
jungpark-mlir 6e8e91a7b6 [MLIR][TOSA] Fix converting tosa.clamp and tosa.relu to linalg
Tosa to Linalg conversion crashes when input tensor is a float type other than fp32.
Because tosa.clamp and tosa.reluN have fp32 min/max attribute which is converted as arith.constant with the attribute type.
This commit fixes the crash by correctly setting the float constant type from the input tensor.

Reviewed By: eric-k256

Differential Revision: https://reviews.llvm.org/D128630
2022-07-11 17:18:47 +00:00
..
tosa-to-linalg-named.mlir [mlir][tosa] Replace StructAttrs with AttrDefs 2022-06-09 23:01:51 +00:00
tosa-to-linalg.mlir [MLIR][TOSA] Fix converting tosa.clamp and tosa.relu to linalg 2022-07-11 17:18:47 +00:00