[Mlir-commits] [mlir] [mlir][tensor] Refine the semantics of `createPadHighOp` (PR #109667)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Sep 25 09:53:29 PDT 2024


================
@@ -24,12 +24,16 @@ using namespace mlir::tensor;
 PadOp mlir::tensor::createPadHighOp(RankedTensorType type, Value source,
                                     Value pad, bool nofold, Location loc,
                                     OpBuilder &b) {
+
+  assert(!ShapedType::isDynamicShape(type.getShape()) &&
----------------
MaheshRavishankar wrote:

Maybe dont assert and instead return an error?

https://github.com/llvm/llvm-project/pull/109667


More information about the Mlir-commits mailing list