[Mlir-commits] [mlir] [mlir][linalg] Fix Linalg runtime verification pass to handle tensors with dimensions of size 0 (PR #163791)
Matthias Springer
llvmlistbot at llvm.org
Sun Oct 19 03:24:01 PDT 2025
================
@@ -297,3 +302,9 @@ func.func @reverse_from_3(%arg0: tensor<?xf32>) -> (tensor<?xf32>) {
} -> tensor<?xf32>
return %result : tensor<?xf32>
}
+
+func.func @fill_empty_1d(%arg0: tensor<?xf32>) -> (tensor<?xf32>) {
+ %c0 = arith.constant 0.0 : f32
+ %0 = linalg.fill ins(%c0 : f32) outs(%arg0 : tensor<?xf32>) -> tensor<?xf32>
----------------
matthias-springer wrote:
Can you add another 2D test case where one dim is zero and the other is non-zero?
https://github.com/llvm/llvm-project/pull/163791
More information about the Mlir-commits
mailing list