Skip to content

Commit 8ef9595

Browse files
NXP backend: Remove optimization in prune_reshape_operators.py (#13413)
### Summary Remove unnecessary optimization in prune_reshape_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 7dfaadf commit 8ef9595

File tree

2 files changed

+0
-129
lines changed

2 files changed

+0
-129
lines changed

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

Lines changed: 0 additions & 116 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
@@ -36,10 +36,6 @@
3636
FuseParallelQuantizeOperators,
3737
PruneQuantizeOperators,
3838
)
39-
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.prune_reshape_operators import (
40-
FuseReshapeOperators,
41-
RemoveReshapeOperatorsWithNoEffect,
42-
)
4339
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.prune_transpose_operators import (
4440
FuseTransposeOperators,
4541
RemoveIdentityTransposeOperators,
@@ -54,9 +50,6 @@ class Optimization(Enum):
5450
FUSE_ACTIVATION_FUNCTIONS = 1
5551
FUSE_FULLY_CONNECTED_AND_ADD = 2
5652

57-
FUSE_RESHAPE_OPERATORS = 3
58-
REMOVE_RESHAPE_OPERATORS_WITH_NO_EFFECT = 4
59-
6053
FUSE_TRANSPOSE_OPERATORS = 5
6154
REMOVE_IDENTITY_TRANSPOSE_OPERATORS = 6
6255

@@ -107,12 +100,6 @@ def __init__(
107100
Optimization.FUSE_FULLY_CONNECTED_AND_ADD: FuseFullyConnectedAndAddOperators(
108101
builder, conversion_config
109102
),
110-
Optimization.FUSE_RESHAPE_OPERATORS: FuseReshapeOperators(
111-
builder, conversion_config
112-
),
113-
Optimization.REMOVE_RESHAPE_OPERATORS_WITH_NO_EFFECT: RemoveReshapeOperatorsWithNoEffect(
114-
builder, conversion_config
115-
),
116103
Optimization.FUSE_TRANSPOSE_OPERATORS: FuseTransposeOperators(
117104
builder, conversion_config
118105
),

0 commit comments

Comments
 (0)