File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55
66import warnings
77
8- from executorch .backends .arm .common .pipeline_config import SoftmaxDecompositionConfig
8+ from executorch .backends .arm .common .pipeline_config import (
9+ FuseDuplicateUsersConfig ,
10+ SoftmaxDecompositionConfig ,
11+ )
912from executorch .backends .arm .ethosu import EthosUCompileSpec
1013from executorch .backends .arm .tosa .compile_spec import TosaCompileSpec
1114from executorch .backends .arm .vgf import VgfCompileSpec
@@ -63,6 +66,13 @@ def test_compile_spec_vgf_no_quant():
6366 EthosUCompileSpec ._from_list (spec_list )
6467
6568
69+ def test_compile_spec_vgf_defaults_to_enabled_fuse_duplicate_users ():
70+ compile_spec = VgfCompileSpec ()
71+ pipeline_config = compile_spec ._get_pass_pipeline_config ()
72+
73+ assert pipeline_config .fuse_duplicate_users == FuseDuplicateUsersConfig .ENABLED
74+
75+
6676def test_compile_spec_tosa_INT ():
6777 compile_spec = TosaCompileSpec ("TOSA-1.0+INT" )
6878 spec_list = compile_spec ._to_list ()
Original file line number Diff line number Diff line change @@ -66,9 +66,3 @@ def _validate(self):
6666 def _get_output_format (cls ) -> str :
6767 """Return the artifact format emitted by this compile spec."""
6868 return "vgf"
69-
70- def _create_default_pipeline_config (self ) -> ArmPassPipelineConfig :
71- config = super ()._create_default_pipeline_config ()
72- # GRPHCOMP-3140 / MLETORCH-1529
73- config .disable_fuse_duplicate_users ()
74- return config
You can’t perform that action at this time.
0 commit comments