@@ -657,7 +657,10 @@ def emit_with_mutating_variants(key, **kwargs):
657
657
emit (
658
658
"aten::max_pool1d_with_indices : (Tensor, int[], int[], int[], int[], bool) -> (Tensor, Tensor)"
659
659
)
660
- emit ("aten::max_pool2d : (Tensor, int[], int[], int[], int[], bool) -> (Tensor)" )
660
+ emit (
661
+ "aten::max_pool2d : (Tensor, int[], int[], int[], int[], bool) -> (Tensor)" ,
662
+ has_canonicalizer = True ,
663
+ )
661
664
emit ("aten::max_unpool2d : (Tensor, Tensor, int[]) -> (Tensor)" )
662
665
emit (
663
666
"aten::max_pool2d_with_indices : (Tensor, int[], int[], int[], int[], bool) -> (Tensor, Tensor)" ,
@@ -666,7 +669,10 @@ def emit_with_mutating_variants(key, **kwargs):
666
669
emit (
667
670
"aten::max_pool2d_with_indices_backward : (Tensor, Tensor, int[], int[], int[], int[], bool, Tensor) -> (Tensor)"
668
671
)
669
- emit ("aten::max_pool3d : (Tensor, int[], int[], int[], int[], bool) -> (Tensor)" )
672
+ emit (
673
+ "aten::max_pool3d : (Tensor, int[], int[], int[], int[], bool) -> (Tensor)" ,
674
+ has_canonicalizer = True ,
675
+ )
670
676
emit ("aten::max_unpool3d : (Tensor, Tensor, int[], int[], int[]) -> (Tensor)" )
671
677
emit (
672
678
"aten::max_pool3d_with_indices : (Tensor, int[], int[], int[], int[], bool) -> (Tensor, Tensor)" ,
@@ -677,13 +683,15 @@ def emit_with_mutating_variants(key, **kwargs):
677
683
)
678
684
emit ("aten::avg_pool1d : (Tensor, int[], int[], int[], bool, bool) -> (Tensor)" )
679
685
emit (
680
- "aten::avg_pool2d : (Tensor, int[], int[], int[], bool, bool, int?) -> (Tensor)"
686
+ "aten::avg_pool2d : (Tensor, int[], int[], int[], bool, bool, int?) -> (Tensor)" ,
687
+ has_canonicalizer = True ,
681
688
)
682
689
emit (
683
690
"aten::avg_pool2d_backward : (Tensor, Tensor, int[], int[], int[], bool, bool, int?) -> (Tensor)"
684
691
)
685
692
emit (
686
- "aten::avg_pool3d : (Tensor, int[], int[], int[], bool, bool, int?) -> (Tensor)"
693
+ "aten::avg_pool3d : (Tensor, int[], int[], int[], bool, bool, int?) -> (Tensor)" ,
694
+ has_canonicalizer = True ,
687
695
)
688
696
emit (
689
697
"aten::avg_pool3d_backward : (Tensor, Tensor, int[], int[], int[], bool, bool, int?) -> (Tensor)"
0 commit comments