File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,6 @@ def _tosa_pipeline(
244244 # passes. Ticket: MLETORCH-1540
245245 DecomposeNotEqualPass (),
246246 MatchArgRanksPass (exported_program ),
247- FuseConstantArgsPass (exported_program ),
248247 ]
249248 )
250249
@@ -266,6 +265,7 @@ def _tosa_pipeline(
266265 DecomposeAvgPool2dPass (),
267266 DecorateFp32toInt32CastingPass (),
268267 ComputeConstantOpsAOTPass (exported_program ),
268+ FuseConstantArgsPass (exported_program ),
269269 ConvertExpandCopyToRepeatPass (),
270270 UnsqueezeBeforeRepeatPass (),
271271 DecomposeCumsumPass (exported_program ),
Original file line number Diff line number Diff line change @@ -178,7 +178,10 @@ def f(node_name_pre_computed):
178178 return node_name_pre_computed
179179 """
180180
181- _passes_required_after : Set [Type [ExportPass ]] = {FuseEqualPlaceholdersPass }
181+ _passes_required_after : Set [Type [ExportPass ]] = {
182+ FuseEqualPlaceholdersPass ,
183+ FuseConstantArgsPass ,
184+ }
182185
183186 targeted_ops = [
184187 exir_ops .edge .aten .full .default ,
Original file line number Diff line number Diff line change @@ -126,8 +126,6 @@ def test_torch_fns_FP(test_data):
126126 xfails = {
127127 "nonzero" : "torch.fx.experimental.symbolic_shapes.GuardOnDataDependentSymNode: Could not guard on data-dependent expression Eq(u4, 0). "
128128 "Requires dynamic output shape." ,
129- "eye" : "ValueError: Failed processing buffer placeholder: aten_arange_start_step_1_pre_computed_common. "
130- "Is the original torch function supported?" ,
131129 "topk" : "NotImplementedError: No registered serialization name for <class 'torch.return_types.topk'> found" ,
132130 "sort" : "NotImplementedError: No registered serialization name for <class 'torch.return_types.sort'> found" ,
133131 },
You can’t perform that action at this time.
0 commit comments