Skip to content

Commit e8c289e

Browse files
SS-JIApytorchbot
authored andcommitted
[arm][ez] Add xfail for norm tests (#10043)
Summary: ## Context #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 f2a08da)
1 parent 4517126 commit e8c289e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backends/arm/test/models/test_torch_functions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ def forward(self, *args):
101101
"Requires dynamic output shape.",
102102
"topk": "NotImplementedError: No registered serialization name for <class 'torch.return_types.topk'> found",
103103
"sort": "NotImplementedError: No registered serialization name for <class 'torch.return_types.sort'> found",
104+
"norm": "An error occurred when running the 'KeepDimsFalseToSqueezePass' pass after the following passes:",
104105
},
105106
)
106107
def test_torch_fns_MI(test_data):
@@ -128,6 +129,8 @@ def test_torch_fns_MI(test_data):
128129
"Requires dynamic output shape.",
129130
"topk": "NotImplementedError: No registered serialization name for <class 'torch.return_types.topk'> found",
130131
"sort": "NotImplementedError: No registered serialization name for <class 'torch.return_types.sort'> found",
132+
"t": "MLETORCH-855: Issue with Quantization folding.",
133+
"norm": "An error occurred when running the 'KeepDimsFalseToSqueezePass' pass after the following passes:",
131134
},
132135
)
133136
def test_torch_fns_BI(test_data):

0 commit comments

Comments
 (0)