Skip to content

Tester: rename inputs to example_inputs #3800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions backends/arm/test/misc/test_debug_feats.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _tosa_MI_pipeline(self, module: torch.nn.Module, dump_file=None):
(
ArmTester(
module,
inputs=module.get_inputs(),
example_inputs=module.get_inputs(),
compile_spec=common.get_tosa_compile_spec(),
)
.export()
Expand All @@ -59,7 +59,7 @@ def _tosa_BI_pipeline(self, module: torch.nn.Module, dump_file=None):
(
ArmTester(
module,
inputs=module.get_inputs(),
example_inputs=module.get_inputs(),
compile_spec=common.get_tosa_compile_spec(),
)
.quantize()
Expand Down Expand Up @@ -101,7 +101,7 @@ def test_numerical_diff_prints(self):
tester = (
ArmTester(
model,
inputs=model.get_inputs(),
example_inputs=model.get_inputs(),
compile_spec=common.get_tosa_compile_spec(),
)
.quantize()
Expand Down
6 changes: 3 additions & 3 deletions backends/arm/test/models/test_mobilenet_v2_arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_mv2_tosa_MI(self):
tester = (
ArmTester(
self.mv2,
inputs=self.model_inputs,
example_inputs=self.model_inputs,
compile_spec=common.get_tosa_compile_spec(permute_memory_to_nhwc=True),
)
.export()
Expand All @@ -72,7 +72,7 @@ def test_mv2_tosa_BI(self):
tester = (
ArmTester(
self.mv2,
inputs=self.model_inputs,
example_inputs=self.model_inputs,
compile_spec=common.get_tosa_compile_spec(permute_memory_to_nhwc=True),
)
.quantize()
Expand Down Expand Up @@ -102,7 +102,7 @@ def test_mv2_u55_BI(self):
(
ArmTester(
self.mv2,
inputs=self.model_inputs,
example_inputs=self.model_inputs,
compile_spec=common.get_u55_compile_spec(permute_memory_to_nhwc=True),
)
.quantize()
Expand Down
6 changes: 3 additions & 3 deletions backends/arm/test/ops/test_add.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def _test_add_tosa_MI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(),
)
.export()
Expand All @@ -85,7 +85,7 @@ def _test_add_tosa_BI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(),
)
.quantize()
Expand All @@ -111,7 +111,7 @@ def _test_add_u55_BI_pipeline(
(
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_u55_compile_spec(),
)
.quantize()
Expand Down
6 changes: 3 additions & 3 deletions backends/arm/test/ops/test_avg_pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def _test_avgpool2d_tosa_MI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(permute_memory_to_nhwc=True),
)
.export()
Expand All @@ -74,7 +74,7 @@ def _test_avgpool2d_tosa_BI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(permute_memory_to_nhwc=True),
)
.quantize()
Expand All @@ -100,7 +100,7 @@ def _test_avgpool2d_tosa_u55_BI_pipeline(
(
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_u55_compile_spec(permute_memory_to_nhwc=True),
)
.quantize()
Expand Down
8 changes: 4 additions & 4 deletions backends/arm/test/ops/test_batch_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ def _test_batchnorm2d_tosa_MI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(),
)
.export()
Expand Down Expand Up @@ -566,7 +566,7 @@ def _test_batchnorm2d_no_stats_tosa_MI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(),
)
.export()
Expand Down Expand Up @@ -600,7 +600,7 @@ def _test_batchnorm2d_tosa_BI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(),
)
.quantize()
Expand Down Expand Up @@ -638,7 +638,7 @@ def _test_batchnorm2d_u55_BI_pipeline(
(
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_u55_compile_spec(),
)
.quantize()
Expand Down
12 changes: 9 additions & 3 deletions backends/arm/test/ops/test_clone.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ def _test_clone_tosa_MI_pipeline(
):
tester = (
ArmTester(
module, inputs=test_data, compile_spec=common.get_tosa_compile_spec()
module,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(),
)
.export()
.check_count({"torch.ops.aten.clone.default": 1})
Expand All @@ -59,7 +61,9 @@ def _test_clone_tosa_BI_pipeline(
):
tester = (
ArmTester(
module, inputs=test_data, compile_spec=common.get_tosa_compile_spec()
module,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(),
)
.quantize()
.export()
Expand All @@ -82,7 +86,9 @@ def _test_clone_tosa_u55_pipeline(
):
(
ArmTester(
module, inputs=test_data, compile_spec=common.get_u55_compile_spec()
module,
example_inputs=test_data,
compile_spec=common.get_u55_compile_spec(),
)
.quantize()
.export()
Expand Down
6 changes: 3 additions & 3 deletions backends/arm/test/ops/test_conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def _test_conv2d_tosa_MI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(permute_memory_to_nhwc=True),
)
.export()
Expand All @@ -272,7 +272,7 @@ def _test_conv2d_tosa_BI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(permute_memory_to_nhwc=True),
)
.quantize()
Expand All @@ -296,7 +296,7 @@ def _test_conv2d_u55_BI_pipeline(
(
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_u55_compile_spec(permute_memory_to_nhwc=True),
)
.quantize()
Expand Down
6 changes: 3 additions & 3 deletions backends/arm/test/ops/test_conv_combos.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def _test_conv_combo_tosa_MI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(permute_memory_to_nhwc=True),
)
.export()
Expand All @@ -187,7 +187,7 @@ def _test_conv_combo_tosa_BI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(permute_memory_to_nhwc=True),
)
.quantize()
Expand All @@ -211,7 +211,7 @@ def _test_conv_combo_u55_BI_pipeline(
(
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_u55_compile_spec(permute_memory_to_nhwc=True),
)
.quantize()
Expand Down
6 changes: 3 additions & 3 deletions backends/arm/test/ops/test_depthwise_conv.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _test_dw_conv2d_tosa_MI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(permute_memory_to_nhwc=True),
)
.export()
Expand All @@ -156,7 +156,7 @@ def _test_dw_conv2d_tosa_BI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(permute_memory_to_nhwc=True),
)
.quantize()
Expand All @@ -180,7 +180,7 @@ def _test_dw_conv2d_u55_BI_pipeline(
(
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_u55_compile_spec(permute_memory_to_nhwc=True),
)
.quantize()
Expand Down
6 changes: 3 additions & 3 deletions backends/arm/test/ops/test_div.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _test_div_tosa_MI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(),
)
.export()
Expand All @@ -131,7 +131,7 @@ def _test_div_tosa_BI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(),
)
.quantize()
Expand All @@ -156,7 +156,7 @@ def _test_div_u55_BI_pipeline(
(
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_u55_compile_spec(),
)
.quantize()
Expand Down
6 changes: 3 additions & 3 deletions backends/arm/test/ops/test_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def _test_linear_tosa_MI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(),
)
.export()
Expand All @@ -143,7 +143,7 @@ def _test_linear_tosa_BI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(),
)
.quantize()
Expand All @@ -168,7 +168,7 @@ def _test_linear_tosa_u55_BI_pipeline(
(
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_u55_compile_spec(),
)
.quantize()
Expand Down
6 changes: 3 additions & 3 deletions backends/arm/test/ops/test_mean_dim.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _test_meandim_tosa_MI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(permute_memory_to_nhwc=True),
)
.export()
Expand All @@ -79,7 +79,7 @@ def _test_meandim_tosa_BI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(permute_memory_to_nhwc=True),
)
.quantize()
Expand All @@ -105,7 +105,7 @@ def _test_meandim_tosa_u55_BI_pipeline(
(
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_u55_compile_spec(permute_memory_to_nhwc=True),
)
.quantize()
Expand Down
8 changes: 5 additions & 3 deletions backends/arm/test/ops/test_softmax.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def _test_softmax_tosa_MI_pipeline(
tester = (
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(),
)
.export()
Expand All @@ -66,7 +66,9 @@ def _test_softmax_tosa_BI_pipeline(
):
tester = (
ArmTester(
module, inputs=test_data, compile_spec=common.get_tosa_compile_spec()
module,
example_inputs=test_data,
compile_spec=common.get_tosa_compile_spec(),
)
.quantize()
.export()
Expand All @@ -91,7 +93,7 @@ def _test_softmax_tosa_u55_BI_pipeline(
(
ArmTester(
module,
inputs=test_data,
example_inputs=test_data,
compile_spec=common.get_u55_compile_spec(),
)
.quantize()
Expand Down
Loading
Loading