Skip to content

Commit 43b4573

Browse files
digantdesaifacebook-github-bot
authored andcommitted
Update method name for tester
Summary: Method name update Differential Revision: D56072265
1 parent 74eb8b3 commit 43b4573

File tree

9 files changed

+17
-17
lines changed

9 files changed

+17
-17
lines changed

backends/arm/test/models/test_mobilenet_v2_arm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def test_mv2_tosa_BI(self):
7474
.to_executorch()
7575
)
7676
if common.TOSA_REF_MODEL_INSTALLED:
77-
tester.run_method().compare_outputs()
77+
tester.run_method_and_compare_outputs()
7878
else:
7979
logger.warning(
8080
"TOSA ref model tool not installed, skip numerical correctness tests"

backends/arm/test/ops/test_add.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def _test_add_tosa_MI_pipeline(
7070
.to_executorch()
7171
)
7272
if common.TOSA_REF_MODEL_INSTALLED:
73-
tester.run_method().compare_outputs()
73+
tester.run_method_and_compare_outputs()
7474
else:
7575
logger.warning(
7676
"TOSA ref model tool not installed, skip numerical correctness tests"
@@ -98,7 +98,7 @@ def _test_add_tosa_BI_pipeline(
9898
)
9999

100100
if common.TOSA_REF_MODEL_INSTALLED:
101-
tester.run_method().compare_outputs(qtol=1)
101+
tester.run_method_and_compare_outputs(qtol=1)
102102
else:
103103
logger.warning(
104104
"TOSA ref model tool not installed, skip numerical correctness tests"

backends/arm/test/ops/test_avg_pool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def _test_avgpool2d_tosa_MI_pipeline(
6565
.to_executorch()
6666
)
6767
if common.TOSA_REF_MODEL_INSTALLED:
68-
tester.run_method().compare_outputs()
68+
tester.run_method_and_compare_outputs()
6969
else:
7070
logger.warning(
7171
"TOSA ref model tool not installed, skip numerical correctness tests"
@@ -93,7 +93,7 @@ def _test_avgpool2d_tosa_BI_pipeline(
9393
.to_executorch()
9494
)
9595
if common.TOSA_REF_MODEL_INSTALLED:
96-
tester.run_method().compare_outputs(qtol=1)
96+
tester.run_method_and_compare_outputs(qtol=1)
9797
else:
9898
logger.warning(
9999
"TOSA ref model tool not installed, skip numerical correctness tests"

backends/arm/test/ops/test_conv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def _test_conv2d_tosa_MI_pipeline(
260260
.to_executorch()
261261
)
262262
if common.TOSA_REF_MODEL_INSTALLED:
263-
tester.run_method().compare_outputs()
263+
tester.run_method_and_compare_outputs()
264264
else:
265265
logger.warning(
266266
"TOSA ref model tool not installed, skip numerical correctness tests"
@@ -288,7 +288,7 @@ def _test_conv2d_tosa_BI_pipeline(
288288
.to_executorch()
289289
)
290290
if common.TOSA_REF_MODEL_INSTALLED:
291-
tester.run_method().compare_outputs(qtol=1)
291+
tester.run_method_and_compare_outputs(qtol=1)
292292
else:
293293
logger.warning(
294294
"TOSA ref model tool not installed, skip numerical correctness tests"

backends/arm/test/ops/test_conv_combos.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def _test_conv_combo_tosa_MI_pipeline(
147147
.to_executorch()
148148
)
149149
if common.TOSA_REF_MODEL_INSTALLED:
150-
tester.run_method().compare_outputs()
150+
tester.run_method_and_compare_outputs()
151151
else:
152152
logger.warning(
153153
"TOSA ref model tool not installed, skip numerical correctness tests"
@@ -177,7 +177,7 @@ def _test_conv_combo_tosa_BI_pipeline(
177177
.to_executorch()
178178
)
179179
if common.TOSA_REF_MODEL_INSTALLED:
180-
tester.run_method().compare_outputs(atol=atol, rtol=rtol, qtol=1)
180+
tester.run_method_and_compare_outputs(atol=atol, rtol=rtol, qtol=1)
181181
else:
182182
logger.warning(
183183
"TOSA ref model tool not installed, skip numerical correctness tests"

backends/arm/test/ops/test_depthwise_conv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def _test_dw_conv2d_tosa_MI_pipeline(
146146
.to_executorch()
147147
)
148148
if common.TOSA_REF_MODEL_INSTALLED:
149-
tester.run_method().compare_outputs()
149+
tester.run_method_and_compare_outputs()
150150
else:
151151
logger.warning(
152152
"TOSA ref model tool not installed, skip numerical correctness tests"
@@ -172,7 +172,7 @@ def _test_dw_conv2d_tosa_BI_pipeline(
172172
.to_executorch()
173173
)
174174
if common.TOSA_REF_MODEL_INSTALLED:
175-
tester.run_method().compare_outputs(qtol=1)
175+
tester.run_method_and_compare_outputs(qtol=1)
176176
else:
177177
logger.warning(
178178
"TOSA ref model tool not installed, skip numerical correctness tests"

backends/arm/test/ops/test_linear.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _test_linear_tosa_MI_pipeline(
126126
.to_executorch()
127127
)
128128
if common.TOSA_REF_MODEL_INSTALLED:
129-
tester.run_method().compare_outputs()
129+
tester.run_method_and_compare_outputs()
130130
else:
131131
logger.warning(
132132
"TOSA ref model tool not installed, skip numerical correctness tests"
@@ -152,7 +152,7 @@ def _test_linear_tosa_BI_pipeline(
152152
.to_executorch()
153153
)
154154
if common.TOSA_REF_MODEL_INSTALLED:
155-
tester.run_method().compare_outputs(qtol=True)
155+
tester.run_method_and_compare_outputs(qtol=True)
156156
else:
157157
logger.warning(
158158
"TOSA ref model tool not installed, skip numerical correctness tests"

backends/arm/test/ops/test_mean_dim.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def _test_meandim_tosa_MI_pipeline(
7070
.to_executorch()
7171
)
7272
if common.TOSA_REF_MODEL_INSTALLED:
73-
tester.run_method().compare_outputs()
73+
tester.run_method_and_compare_outputs()
7474
else:
7575
logger.warning(
7676
"TOSA ref model tool not installed, skip numerical correctness tests"
@@ -98,7 +98,7 @@ def _test_meandim_tosa_BI_pipeline(
9898
.to_executorch()
9999
)
100100
if common.TOSA_REF_MODEL_INSTALLED:
101-
tester.run_method().compare_outputs(qtol=1)
101+
tester.run_method_and_compare_outputs(qtol=1)
102102
else:
103103
logger.warning(
104104
"TOSA ref model tool not installed, skip numerical correctness tests"

backends/arm/test/ops/test_softmax.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def _test_softmax_tosa_MI_pipeline(
5757
.to_executorch()
5858
)
5959
if common.TOSA_REF_MODEL_INSTALLED:
60-
tester.run_method().compare_outputs()
60+
tester.run_method_and_compare_outputs()
6161
else:
6262
logger.warning(
6363
"TOSA ref model tool not installed, skip numerical correctness tests"
@@ -84,7 +84,7 @@ def _test_softmax_tosa_BI_pipeline(
8484
.to_executorch()
8585
)
8686
if common.TOSA_REF_MODEL_INSTALLED:
87-
tester.run_method().compare_outputs(qtol=1)
87+
tester.run_method_and_compare_outputs(qtol=1)
8888
else:
8989
logger.warning(
9090
"TOSA ref model tool not installed, skip numerical correctness tests"

0 commit comments

Comments
 (0)