[Mlir-commits] [mlir] [mlir][tosa] Fix crash in inferReturnTypes for ReduceOps (PR #69843)
Felix Schneider
llvmlistbot at llvm.org
Mon Oct 23 14:14:20 PDT 2023
================
@@ -593,13 +593,3 @@ func.func @fold_abs_abs(%arg0: tensor<?x1xf32>) -> tensor<?x1xf32> {
}
// -----
-
-// CHECK-LABEL: @fold_reduce_rank_zero
-func.func nested @fold_reduce_rank_zero() {
- // CHECK-NOT: tosa.reduce_min
- // CHECK-NOT: tosa.reverse
- %0 = tensor.empty() : tensor<i32>
- %1 = tosa.reduce_min %0 {axis = 0 : i32} : (tensor<i32>) -> tensor<1x10xi32>
----------------
ubfx wrote:
> We could solve this with a special case in the verifier to allow axis=0 when the tensor rank is 0.
OK, I'll do that. But the case above should probably still be invalid because of the output tensor's rank, right?
https://github.com/llvm/llvm-project/pull/69843
More information about the Mlir-commits
mailing list