Skip to content

Commit 0527015

Browse files
authored
Fix test_1d_depthwise_convolution_weight_shape
Differential Revision: D98742682 Pull Request resolved: pytorch#18590
1 parent 4c56d9b commit 0527015

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎backends/cadence/aot/tests/test_replace_ops_passes.py‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,11 +2748,16 @@ def test_1d_depthwise_convolution_weight_shape(self) -> None:
27482748
)
27492749

27502750
# For 1D depthwise:
2751-
# - Input/output/weight all use permute_copy (3 ops)
2751+
# - Input/output use permute_copy (2 ops)
2752+
# - Weight uses transpose_copy.int (1 op) via _transpose_dims
27522753
# - No squeeze_copy needed
27532754
self.assertEqual(
27542755
count_node(gm_after_replacement, exir_ops.edge.aten.permute_copy.default),
2755-
3,
2756+
2,
2757+
)
2758+
self.assertEqual(
2759+
count_node(gm_after_replacement, exir_ops.edge.aten.transpose_copy.int),
2760+
1,
27562761
)
27572762
self.assertEqual(
27582763
count_node(gm_after_replacement, exir_ops.edge.aten.squeeze_copy.dim),

0 commit comments

Comments
 (0)