diff --git a/e2e_testing/torchscript/xfail_sets.py b/e2e_testing/torchscript/xfail_sets.py index a0c12c7962d0..7f9be0987ac9 100644 --- a/e2e_testing/torchscript/xfail_sets.py +++ b/e2e_testing/torchscript/xfail_sets.py @@ -50,4 +50,5 @@ "SqueezeDimModule_identity", "SqueezeDimModule_unitDim", "ReturnTwoTensorF32I64_basic", + "ElementwisePowModule_basic", } diff --git a/python/torch_mlir_e2e_test/tosa_backends/linalg_on_tensors.py b/python/torch_mlir_e2e_test/tosa_backends/linalg_on_tensors.py index e7bca9553f23..f2755e1c3a3b 100644 --- a/python/torch_mlir_e2e_test/tosa_backends/linalg_on_tensors.py +++ b/python/torch_mlir_e2e_test/tosa_backends/linalg_on_tensors.py @@ -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)",