File tree Expand file tree Collapse file tree 5 files changed +1
-83
lines changed
Expand file tree Collapse file tree 5 files changed +1
-83
lines changed Original file line number Diff line number Diff line change 88from .annotate_quant_attrs import AnnotateQuantAttrs
99from .annotate_stack import AnnotateStack
1010from .annotate_unbind import AnnotateUnbind
11- from .convert_bmm_to_matmul import ConvertBmmToMatmul
1211from .convert_conv1d_to_conv2d import ConvertConv1dToConv2d
1312from .convert_square_to_pow import ConvertSquareToPow
1413from .decompose_any import DecomposeAny
4443 AnnotateQuantAttrs ,
4544 AnnotateStack ,
4645 AnnotateUnbind ,
47- ConvertBmmToMatmul ,
4846 ConvertConv1dToConv2d ,
4947 ConvertSquareToPow ,
5048 DecomposeAny ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1313 AnnotateQuantAttrs ,
1414 AnnotateStack ,
1515 AnnotateUnbind ,
16- ConvertBmmToMatmul ,
1716 ConvertConv1dToConv2d ,
1817 ConvertSquareToPow ,
1918 DecomposeAny ,
@@ -79,7 +78,6 @@ def get_capture_program_passes():
7978 (AnnotateQuantAttrs , True ),
8079 (AnnotateStack , True ),
8180 (AnnotateUnbind , True ),
82- (ConvertBmmToMatmul , True ),
8381 (ConvertConv1dToConv2d , True ),
8482 (DecomposeAny , True ),
8583 (ExpandBroadcastTensorShape , False ),
Original file line number Diff line number Diff line change @@ -64,7 +64,6 @@ def get_passes_dependency_for_capture_program():
6464 AnnotateQuantAttrs ,
6565 AnnotateStack ,
6666 AnnotateUnbind ,
67- ConvertBmmToMatmul ,
6867 ConvertConv1dToConv2d ,
6968 DecomposeAny ,
7069 DecomposeLinalgVectorNorm ,
@@ -84,12 +83,10 @@ def get_passes_dependency_for_capture_program():
8483 AnnotateAdaptiveAvgPool1D : [RemoveRedundancy ],
8584 AnnotateQuantAttrs : [
8685 RecomposePixelUnshuffle ,
87- ConvertBmmToMatmul ,
8886 RemoveRedundancy ,
8987 ],
9088 AnnotateStack : [RemoveRedundancy ],
9189 AnnotateUnbind : [RemoveRedundancy ],
92- ConvertBmmToMatmul : [RecomposePixelUnshuffle ],
9390 DecomposeAny : [RemoveRedundancy ],
9491 DecomposeLinalgVectorNorm : [RemoveRedundancy ],
9592 ExpandBroadcastTensorShape : [FoldQDQ ],
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ def get_skip_decomp_table() -> List[torch._ops.OperatorBase]:
4848 torch .ops .aten .instance_norm .default ,
4949 torch .ops .aten .leaky_relu .default ,
5050 torch .ops .aten .linear .default ,
51+ torch .ops .aten .matmul .default ,
5152 torch .ops .aten .pixel_shuffle .default ,
5253 torch .ops .aten .pixel_unshuffle .default ,
5354 torch .ops .aten .prelu .default ,
You can’t perform that action at this time.
0 commit comments