Skip to content

Commit 44ec67d

Browse files
tugsbayasgalanfacebook-github-bot
authored andcommitted
Minor updates to xnnpack tests
Summary: This makes torch.export migration easier Reviewed By: mcr229 Differential Revision: D56720545 fbshipit-source-id: fa6fc1bd770432201e7c39fafdb45f8a28392dbd
1 parent 9a0e676 commit 44ec67d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

backends/xnnpack/test/ops/add.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,7 @@ def test_qs8_add_constant(self):
9595
.check_not(["executorch_exir_dialects_edge__ops_aten_add_Tensor"])
9696
.to_executorch()
9797
.serialize()
98-
.run_method()
99-
.compare_outputs()
98+
.run_method_compare_outputs()
10099
)
101100

102101
def test_qs8_add(self):

backends/xnnpack/test/tester/tester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def run(
189189
) -> None:
190190
self.exported_program = export(
191191
artifact, inputs, dynamic_shapes=self.dynamic_shapes
192-
)
192+
).run_decompositions()
193193

194194
@property
195195
def artifact(self) -> ExportedProgram:

0 commit comments

Comments
 (0)