Skip to content

Commit 7dfaadf

Browse files
NXP backend: Remove optimization in prune_cast_operators.py (#13377)
### Summary Remove unnecessary optimization in prune_cast_operators.py in IR optimizer. ### Test plan All tests where a subgraph is delegated to Neutron. cc @digantdesai @JakeStevens @robert-kalmar @Pop-korn
1 parent eac6ac9 commit 7dfaadf

File tree

2 files changed

+0
-130
lines changed

2 files changed

+0
-130
lines changed

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

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

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.permute_fully_connected_weights_after_reshape import (
3333
PermuteFullyConnectedWeightsAfterReshape,
3434
)
35-
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.prune_cast_operators import (
36-
FuseCastOperators,
37-
RemoveCastOperatorsWithNoEffect,
38-
)
3935
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.prune_quantize_operators import (
4036
FuseParallelQuantizeOperators,
4137
PruneQuantizeOperators,
@@ -71,9 +67,6 @@ class Optimization(Enum):
7167
ELIMINATE_DEAD_BRANCHES = 11
7268
PERMUTE_FULLY_CONNECTED_WEIGHTS_AFTER_RESHAPE = 12
7369

74-
FUSE_CAST_OPERATORS = 13
75-
REMOVE_CAST_OPERATORS_WITH_NO_EFFECT = 14
76-
7770
MOVE_ACTIVATION_BEFORE_CONCAT = 15
7871
COMBINE_HARD_SIGMOID_AND_MUL_INTO_HARD_SWISH = 16
7972

@@ -141,12 +134,6 @@ def __init__(
141134
Optimization.PERMUTE_FULLY_CONNECTED_WEIGHTS_AFTER_RESHAPE: PermuteFullyConnectedWeightsAfterReshape(
142135
builder, conversion_config
143136
),
144-
Optimization.FUSE_CAST_OPERATORS: FuseCastOperators(
145-
builder, conversion_config
146-
),
147-
Optimization.REMOVE_CAST_OPERATORS_WITH_NO_EFFECT: RemoveCastOperatorsWithNoEffect(
148-
builder, conversion_config
149-
),
150137
Optimization.MOVE_ACTIVATION_BEFORE_CONCAT: MoveActivationBeforeConcatenation(
151138
builder, conversion_config
152139
),

0 commit comments

Comments
 (0)