Skip to content

Commit 1121ad9

Browse files
cbilginkirklandsign
authored andcommitted
linter fixes
1 parent 94c8114 commit 1121ad9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backends/xnnpack/test/ops/test_slice_copy.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,11 @@ def forward(self, x):
131131
dynamic_shapes=({2: torch.export.Dim("dim_2", min=4, max=100)},),
132132
)
133133
tester.export()
134-
tester.to_edge_transform_and_lower()
134+
if legacy:
135+
tester.to_edge()
136+
tester.partition()
137+
else:
138+
tester.to_edge_transform_and_lower()
135139
tester.check_not(["torch.ops.higher_order.executorch_call_delegate"])
136140

137141
# Note: Slice ends up as slice_copy later in the process, but during quantization,

0 commit comments

Comments
 (0)