Skip to content

Commit 5d6c4f4

Browse files
authored
[tosa] Enable tosa-to-linalg-named so Matmul works again (#530)
Signed-off-by: Suraj Sudhir <[email protected]>
1 parent 6fe70c7 commit 5d6c4f4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

e2e_testing/torchscript/xfail_sets.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,7 @@
5151
"SqueezeDimModule_unitDim",
5252
"ReturnTwoTensorF32I64_basic",
5353
"ElementwisePowModule_basic",
54+
"BmmModule_basic",
55+
"Matmul_dot",
56+
"Matmul_3d",
5457
}

python/torch_mlir_e2e_test/tosa_backends/linalg_on_tensors.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ def compile(self, imported_module: Module):
4848
"builtin.func(tosa-to-standard)",
4949
"Lowering TOSA to Standard")
5050

51+
# Named ops must be legalized prior to general tosa-to-linalg
52+
run_pipeline_with_repro_report(
53+
imported_module,
54+
"builtin.func(tosa-to-linalg-named)",
55+
"Lowering TOSA to Linalg-on-Tensors for Named Ops")
56+
5157
run_pipeline_with_repro_report(
5258
imported_module,
5359
"builtin.func(tosa-to-linalg)",

0 commit comments

Comments
 (0)