[Mlir-commits] [mlir] [MLIR][Linalg] Introduce linalg.contract (PR #123618)

Andrzej WarzyƄski llvmlistbot at llvm.org
Tue Jan 28 09:05:15 PST 2025


================
@@ -529,6 +529,103 @@ func.func @invalid_indexing_maps_placement_matmul(%lhs: tensor<4x1xf32>, %rhs: t
 
 // -----
 
+func.func @invalid_indexing_maps_placement_contraction(
+    %lhs: tensor<4x1xf32>, %rhs: tensor<1x64xf32>, %init: tensor<4x64xf32>) {
+  // expected-error @+2 {{custom op 'linalg.contract' expected 'indexing_maps' attribute}}
----------------
banach-space wrote:

We do have some complex parsers/verifiers in various places (IIRC, there's a few in Vector). So there's precedent.

But this is non-critical, thanks for taking a look and for the discussion.

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


More information about the Mlir-commits mailing list