Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions e2e_testing/torchscript/xfail_sets.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,5 @@
"SqueezeDimModule_identity",
"SqueezeDimModule_unitDim",
"ReturnTwoTensorF32I64_basic",
"ElementwisePowModule_basic",
}
11 changes: 11 additions & 0 deletions python/torch_mlir_e2e_test/tosa_backends/linalg_on_tensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,17 @@ def compile(self, imported_module: Module):
passed to `load`.
"""

# TOSA legalization may emit tosa.const() ops. These are legalized
# by tosa-to-standard to arith.constants. This mechanical transformation
# must be done prior to TOSA-to-LinAlg so that the latter does not fail.
# This is an artifact of legalizations spread across a collection of simple
# ones in TOSA-to-Standard and the main conversions TOSA-to-LinAlg,
# that depend on TOSA as well as TOSA-to-Standard.
run_pipeline_with_repro_report(
imported_module,
"builtin.func(tosa-to-standard)",
"Lowering TOSA to Standard")

run_pipeline_with_repro_report(
imported_module,
"builtin.func(tosa-to-linalg)",
Expand Down