|
66 | 66 | DecomposeNotEqualPass, |
67 | 67 | DecomposeRemainderPass, |
68 | 68 | DecomposeRoundPass, |
| 69 | + DecomposeScaledDotProductAttention, |
69 | 70 | DecomposeSelectPass, |
70 | 71 | DecomposeSignPass, |
71 | 72 | DecomposeSiluPass, |
|
82 | 83 | FuseDuplicateUsersPass, |
83 | 84 | FuseEqualPlaceholdersPass, |
84 | 85 | FuseQuantizedActivationPass, |
| 86 | + FuseViewCopyTransformPass, |
85 | 87 | InsertInt32CastsAfterInt64PlaceholdersPass, |
86 | 88 | InsertRescaleInt32Pass, |
87 | 89 | InsertRescalePass, |
88 | 90 | InsertTableOpsPass, |
89 | 91 | MatchArgDtypePass, |
90 | 92 | MatchArgRanksPass, |
91 | 93 | QuantizeOperatorArguments, |
| 94 | + RemoveGetItemPass, |
| 95 | + RemoveGraphAssertsPass, |
92 | 96 | RemoveNoopPass, |
93 | 97 | ReplaceInfValues, |
94 | 98 | ReplaceScalarWithTensorByProfilePass, |
|
107 | 111 | TosaLoweringContext, |
108 | 112 | TosaSpecification, |
109 | 113 | ) |
110 | | -from executorch.backends.transforms.decompose_sdpa import ( |
111 | | - DecomposeScaledDotProductAttention, |
112 | | -) |
113 | | -from executorch.backends.transforms.fuse_view_copy import FuseViewCopyTransform |
114 | | -from executorch.backends.transforms.remove_getitem_op import RemoveGetItemPass |
115 | 114 | from executorch.exir import ExportedProgram |
116 | 115 | from executorch.exir.pass_manager import PassManager |
117 | | -from executorch.exir.passes.remove_graph_asserts_pass import RemoveGraphAssertsPass |
118 | 116 | from torch.fx import GraphModule |
119 | 117 | from torch.fx.passes.infra.pass_base import PassResult |
120 | 118 | from torch.nn.modules import Module |
@@ -258,7 +256,7 @@ def _tosa_pipeline( |
258 | 256 | self.add_pass(CastToInt32Pass()) |
259 | 257 | self.add_pass(BroadcastArgsPass()) |
260 | 258 | self.add_pass(ConvertPermuteSingletonToViewPass()) |
261 | | - self.add_pass(FuseViewCopyTransform()) |
| 259 | + self.add_pass(FuseViewCopyTransformPass()) |
262 | 260 | self.add_pass(DecomposeConv2dWithInt16ActivationPass()) |
263 | 261 | self.add_pass(DecomposeSumPass()) |
264 | 262 | self.add_pass(InsertTableOpsPass(exported_program)) |
|
0 commit comments