Skip to content

Commit 28638d7

Browse files
Update strings in Arm unittests (#4143)
Summary: Update strings in checks for operators. The old checks became invalid when #4109 was merged. Change-Id: I89e398d4b6467244ce732cafa08850fb8a2c754d Pull Request resolved: #4143 Reviewed By: kimishpatel Differential Revision: D59327800 Pulled By: digantdesai fbshipit-source-id: 513bcc1d137b67bbf14e55454db99d6749ede857
1 parent 459bc1d commit 28638d7

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

backends/arm/test/ops/test_linear.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def _test_linear_tosa_MI_pipeline(
123123
compile_spec=common.get_tosa_compile_spec(),
124124
)
125125
.export()
126-
.check_count({"torch.ops.aten.addmm.default": 1})
126+
.check_count({"torch.ops.aten.linear.default": 1})
127127
.check_not(["torch.ops.quantized_decomposed"])
128128
.to_edge(config=self._edge_compile_config)
129129
.partition()
@@ -143,7 +143,7 @@ def _test_linear_tosa_BI_pipeline(
143143
)
144144
.quantize()
145145
.export()
146-
.check_count({"torch.ops.aten.addmm.default": 1})
146+
.check_count({"torch.ops.aten.linear.default": 1})
147147
.check(["torch.ops.quantized_decomposed"])
148148
.to_edge(config=self._edge_compile_config)
149149
.partition()
@@ -163,7 +163,7 @@ def _test_linear_tosa_u55_BI_pipeline(
163163
)
164164
.quantize()
165165
.export()
166-
.check_count({"torch.ops.aten.addmm.default": 1})
166+
.check_count({"torch.ops.aten.linear.default": 1})
167167
.check(["torch.ops.quantized_decomposed"])
168168
.to_edge(config=self._edge_compile_config)
169169
.partition()

backends/arm/test/ops/test_mean_dim.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def _test_meandim_tosa_MI_pipeline(
5858
compile_spec=common.get_tosa_compile_spec(permute_memory_to_nhwc=True),
5959
)
6060
.export()
61-
.check(["torch.ops.aten.mean.dim"])
61+
.check(["torch.ops.aten.adaptive_avg_pool2d.default"])
6262
.check_not(["torch.ops.quantized_decomposed"])
6363
.to_edge()
6464
.partition()
@@ -79,7 +79,7 @@ def _test_meandim_tosa_BI_pipeline(
7979
)
8080
.quantize()
8181
.export()
82-
.check_count({"torch.ops.aten.mean.dim": 1})
82+
.check_count({"torch.ops.aten.adaptive_avg_pool2d.default": 1})
8383
.check(["torch.ops.quantized_decomposed"])
8484
.to_edge()
8585
.partition()
@@ -100,7 +100,7 @@ def _test_meandim_tosa_u55_BI_pipeline(
100100
)
101101
.quantize()
102102
.export()
103-
.check_count({"torch.ops.aten.mean.dim": 1})
103+
.check_count({"torch.ops.aten.adaptive_avg_pool2d.default": 1})
104104
.check(["torch.ops.quantized_decomposed"])
105105
.to_edge()
106106
.partition()

backends/arm/test/ops/test_softmax.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def _test_softmax_tosa_MI_pipeline(
4646
compile_spec=common.get_tosa_compile_spec(),
4747
)
4848
.export()
49-
.check(["torch.ops.aten._softmax.default"])
49+
.check(["torch.ops.aten.softmax.int"])
5050
.check_not(["torch.ops.quantized_decomposed"])
5151
.to_edge()
5252
.partition()
@@ -67,7 +67,7 @@ def _test_softmax_tosa_BI_pipeline(
6767
)
6868
.quantize()
6969
.export()
70-
.check_count({"torch.ops.aten._softmax.default": 1})
70+
.check_count({"torch.ops.aten.softmax.int": 1})
7171
.check(["torch.ops.quantized_decomposed"])
7272
.to_edge()
7373
.partition()
@@ -88,7 +88,7 @@ def _test_softmax_tosa_u55_BI_pipeline(
8888
)
8989
.quantize()
9090
.export()
91-
.check_count({"torch.ops.aten._softmax.default": 1})
91+
.check_count({"torch.ops.aten.softmax.int": 1})
9292
.check(["torch.ops.quantized_decomposed"])
9393
.to_edge()
9494
.partition()

0 commit comments

Comments
 (0)