From e8c289e8205339c8e51c8935f6b5d6429691e363 Mon Sep 17 00:00:00 2001 From: Sicheng Stephen Jia Date: Thu, 10 Apr 2025 09:42:06 -0400 Subject: [PATCH] [arm][ez] Add `xfail` for `norm` tests (#10043) Summary: ## Context https://github.com/pytorch/executorch/pull/9938 made it so that `linalg_vector_norm` is now decomposed when exporting to Edge. However, this broke some tests in the arm delegate because export passes cannot handle the decomposed operator sequence. To account for this, add `xfail` for the failing tests since `linalg_vector_norm` is not supported in TOSA yet. ## Changes Add `xfail` for `norm` tests in `test_torch_functions.py` Test Plan: ## Test Plan Check CI that failing test is recovered. (cherry picked from commit f2a08da1d7d90bef35bdb280f2a90de1049eeae9) --- backends/arm/test/models/test_torch_functions.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backends/arm/test/models/test_torch_functions.py b/backends/arm/test/models/test_torch_functions.py index 6363de90478..2f3e65c6831 100644 --- a/backends/arm/test/models/test_torch_functions.py +++ b/backends/arm/test/models/test_torch_functions.py @@ -101,6 +101,7 @@ def forward(self, *args): "Requires dynamic output shape.", "topk": "NotImplementedError: No registered serialization name for found", "sort": "NotImplementedError: No registered serialization name for found", + "norm": "An error occurred when running the 'KeepDimsFalseToSqueezePass' pass after the following passes:", }, ) def test_torch_fns_MI(test_data): @@ -128,6 +129,8 @@ def test_torch_fns_MI(test_data): "Requires dynamic output shape.", "topk": "NotImplementedError: No registered serialization name for found", "sort": "NotImplementedError: No registered serialization name for found", + "t": "MLETORCH-855: Issue with Quantization folding.", + "norm": "An error occurred when running the 'KeepDimsFalseToSqueezePass' pass after the following passes:", }, ) def test_torch_fns_BI(test_data):