[Mlir-commits] [mlir] [mlir][linalg] Constrain the parameters m, r in Winograd ops (PR #144657)

Oleksandr Alex Zinenko llvmlistbot at llvm.org
Tue Jun 24 00:00:28 PDT 2025


================
@@ -2989,8 +2989,9 @@ LogicalResult WinogradFilterTransformOp::verify() {
   ArrayRef<int64_t> filterShape = filterType.getShape();
   int64_t filterH = filterShape[getFilterHDim()];
   int64_t filterW = filterShape[getFilterWDim()];
-  int64_t r = getR();
-  int64_t m = getM();
+  WinogradConv2DFmr fmr = getFmr();
+  int64_t m, r;
+  std::tie(m, r) = getFmrFromWinogradConv2DFmr(fmr);
----------------
ftynse wrote:

Here, we could silently continue with `m = r = -1` unless we remove the "unknown" enum case.

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


More information about the Mlir-commits mailing list