mirror of https://github.com/llvm/torch-mlir
[tosa] Enable tosa-to-linalg-named so Matmul works again (#530)
Signed-off-by: Suraj Sudhir <suraj.sudhir@arm.com>pull/531/head
parent
6fe70c7794
commit
5d6c4f48dc
|
@ -51,4 +51,7 @@ TOSA_PASS_SET = {
|
|||
"SqueezeDimModule_unitDim",
|
||||
"ReturnTwoTensorF32I64_basic",
|
||||
"ElementwisePowModule_basic",
|
||||
"BmmModule_basic",
|
||||
"Matmul_dot",
|
||||
"Matmul_3d",
|
||||
}
|
||||
|
|
|
@ -48,6 +48,12 @@ class LinalgOnTensorsTosaBackend(TosaBackend):
|
|||
"builtin.func(tosa-to-standard)",
|
||||
"Lowering TOSA to Standard")
|
||||
|
||||
# Named ops must be legalized prior to general tosa-to-linalg
|
||||
run_pipeline_with_repro_report(
|
||||
imported_module,
|
||||
"builtin.func(tosa-to-linalg-named)",
|
||||
"Lowering TOSA to Linalg-on-Tensors for Named Ops")
|
||||
|
||||
run_pipeline_with_repro_report(
|
||||
imported_module,
|
||||
"builtin.func(tosa-to-linalg)",
|
||||
|
|
Loading…
Reference in New Issue