[Mlir-commits] [mlir] [mlir][linalg] Propagate filter tensor encoding in im2col (PR #160099)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Sep 26 01:52:34 PDT 2025
================
@@ -124,6 +125,10 @@ rewriteInIm2Col(RewriterBase &rewriter, linalg::Conv2DNhwcHwcfOp convOp) {
auto filterType = cast<ShapedType>(convOp.getInputs()[1].getType());
auto outputType = cast<ShapedType>(convOp.getOutputs()[0].getType());
+ if (!convOp.hasPureTensorSemantics())
+ return rewriter.notifyMatchFailure(
+ convOp, "expected op to have pure tensor semantics");
+
----------------
fabrizio-indirli wrote:
Done. Thanks for the review!
https://github.com/llvm/llvm-project/pull/160099
More information about the Mlir-commits
mailing list