[Mlir-commits] [mlir] [mlir][linalg] Propagate filter tensor encoding in im2col (PR #160099)

Andrzej WarzyƄski llvmlistbot at llvm.org
Tue Sep 23 08:09:36 PDT 2025


================
@@ -155,10 +155,16 @@ rewriteInIm2Col(RewriterBase &rewriter, linalg::Conv2DNhwcHwcfOp convOp) {
 
   Location loc = convOp.getLoc();
 
+  if (!isa<RankedTensorType>(filterType))
+    return rewriter.notifyMatchFailure(
+        convOp, "expected filter type to be a ranked tensor");
----------------
banach-space wrote:

Shouldn't this be an assertions or a verification failure?

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


More information about the Mlir-commits mailing list