From 89f3ff0ce5437e796f420367feeeadde9b4a30cd Mon Sep 17 00:00:00 2001 From: Sicheng Jia Date: Wed, 9 Apr 2025 22:47:52 -0700 Subject: [PATCH] [arm][ez] Add `xfail` for `norm` tests 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. --- backends/arm/test/models/test_torch_functions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backends/arm/test/models/test_torch_functions.py b/backends/arm/test/models/test_torch_functions.py index 19e2395adfe..5cd4bd3aaed 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): @@ -129,6 +130,7 @@ def test_torch_fns_MI(test_data): "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:", }, strict=False, )