Skip to content

Commit dc87d22

Browse files
NXP backend: Remove optimization in combine_hard_sigmoid_and_mul_to_hard_swish.py (#14582)
### Summary Remove unnecessary optimization in combine_hard_sigmoid_and_mul_to_hard_swish.py in IR optimizer. ### Test plan All tests where a subgraph is delegated to Neutron. @robert-kalmar @MartinPavella @jirioc
1 parent 3bc9282 commit dc87d22

File tree

2 files changed

+0
-263
lines changed

2 files changed

+0
-263
lines changed

backends/nxp/backend/ir/tflite_optimizer/optimizations/combine_hard_sigmoid_and_mul_to_hard_swish.py

Lines changed: 0 additions & 256 deletions
This file was deleted.

backends/nxp/backend/ir/tflite_optimizer/optimizer.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111

1212
from executorch.backends.nxp.backend.ir import logger
1313
from executorch.backends.nxp.backend.ir.conversion_config import ConversionConfig
14-
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.combine_hard_sigmoid_and_mul_to_hard_swish import (
15-
CombineHardSigmoidAndMulIntoHardSwish,
16-
)
1714
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.fuse_activation_functions import (
1815
FuseActivationFunctions,
1916
)
@@ -38,7 +35,6 @@ class Optimization(Enum):
3835
PERMUTE_FULLY_CONNECTED_WEIGHTS_AFTER_RESHAPE = 12
3936

4037
MOVE_ACTIVATION_BEFORE_CONCAT = 15
41-
COMBINE_HARD_SIGMOID_AND_MUL_INTO_HARD_SWISH = 16
4238

4339

4440
class Optimizer:
@@ -83,9 +79,6 @@ def __init__(
8379
Optimization.MOVE_ACTIVATION_BEFORE_CONCAT: MoveActivationBeforeConcatenation(
8480
builder, conversion_config
8581
),
86-
Optimization.COMBINE_HARD_SIGMOID_AND_MUL_INTO_HARD_SWISH: CombineHardSigmoidAndMulIntoHardSwish(
87-
builder, conversion_config
88-
),
8982
}
9083

9184
def optimize(

0 commit comments

Comments
 (0)