Skip to content

Commit 85f597e

Browse files
committed
more linter fixes
1 parent d82b28f commit 85f597e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

backends/xnnpack/test/ops/sdpa.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,13 @@ def _test(self, module, inputs, atol=1e-03, rtol=1e-03):
6464
for legacy in (True, False):
6565
tester = Tester(module, inputs)
6666
tester.export()
67-
tester.to_edge_transform_and_lower(
68-
ToEdgeTransformAndLower([XnnpackPartitioner(configs=[SDPAConfig])])
69-
)
67+
if legacy:
68+
tester.to_edge()
69+
tester.partition()
70+
else:
71+
tester.to_edge_transform_and_lower(
72+
ToEdgeTransformAndLower([XnnpackPartitioner(configs=[SDPAConfig])])
73+
)
7074
tester.check_count({"torch.ops.higher_order.executorch_call_delegate": 1})
7175
tester.check_not(
7276
["executorch_exir_dialects_edge__ops_aten_bmm_default"],

0 commit comments

Comments
 (0)