Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backends/arm/_passes/arm_pass_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ def _tosa_pipeline(
# passes. Ticket: MLETORCH-1540
DecomposeNotEqualPass(),
MatchArgRanksPass(exported_program),
FuseConstantArgsPass(exported_program),
]
)

Expand All @@ -266,6 +265,7 @@ def _tosa_pipeline(
DecomposeAvgPool2dPass(),
DecorateFp32toInt32CastingPass(),
ComputeConstantOpsAOTPass(exported_program),
FuseConstantArgsPass(exported_program),
ConvertExpandCopyToRepeatPass(),
UnsqueezeBeforeRepeatPass(),
DecomposeCumsumPass(exported_program),
Expand Down
5 changes: 4 additions & 1 deletion backends/arm/_passes/fuse_constant_ops_pass.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ def f(node_name_pre_computed):
return node_name_pre_computed
"""

_passes_required_after: Set[Type[ExportPass]] = {FuseEqualPlaceholdersPass}
_passes_required_after: Set[Type[ExportPass]] = {
FuseEqualPlaceholdersPass,
FuseConstantArgsPass,
}

targeted_ops = [
exir_ops.edge.aten.full.default,
Expand Down
2 changes: 0 additions & 2 deletions backends/arm/test/models/test_torch_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,6 @@ def test_torch_fns_FP(test_data):
xfails={
"nonzero": "torch.fx.experimental.symbolic_shapes.GuardOnDataDependentSymNode: Could not guard on data-dependent expression Eq(u4, 0). "
"Requires dynamic output shape.",
"eye": "ValueError: Failed processing buffer placeholder: aten_arange_start_step_1_pre_computed_common. "
"Is the original torch function supported?",
"topk": "NotImplementedError: No registered serialization name for <class 'torch.return_types.topk'> found",
"sort": "NotImplementedError: No registered serialization name for <class 'torch.return_types.sort'> found",
},
Expand Down
Loading