[Mlir-commits] [mlir] [mlir][tensor] Fix PadOp::getConstantPaddingValue (PR #121205)
Longsheng Mou
llvmlistbot at llvm.org
Mon Dec 30 18:05:44 PST 2024
================
@@ -44,3 +46,26 @@ func.func @generalize_pad_tensor_dynamic_shape(%arg0: tensor<4x?x2x?xf32>, %arg1
} : tensor<4x?x2x?xf32> to tensor<4x?x?x?xf32>
return %out : tensor<4x?x?x?xf32>
}
+
+// -----
+
+// Ensure that the constant value inside the PadOp block does not cause a crash.
----------------
CoTinker wrote:
Good idea.
https://github.com/llvm/llvm-project/pull/121205
More information about the Mlir-commits
mailing list