Skip to content

Commit 2a58471

Browse files
NXP backend: Remove optimization in prune_quantize_operators.py (#13409)
### Summary Remove unnecessary optimization in prune_quantize_operators.py in IR optimizer. ### Test plan All tests where a subgraph is delegated to Neutron.
1 parent 1520f9f commit 2a58471

File tree

2 files changed

+0
-317
lines changed

2 files changed

+0
-317
lines changed

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

Lines changed: 0 additions & 304 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
@@ -29,10 +29,6 @@
2929
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.permute_fully_connected_weights_after_reshape import (
3030
PermuteFullyConnectedWeightsAfterReshape,
3131
)
32-
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.prune_quantize_operators import (
33-
FuseParallelQuantizeOperators,
34-
PruneQuantizeOperators,
35-
)
3632
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.prune_transpose_operators import (
3733
FuseTransposeOperators,
3834
RemoveIdentityTransposeOperators,
@@ -50,9 +46,6 @@ class Optimization(Enum):
5046
FUSE_TRANSPOSE_OPERATORS = 5
5147
REMOVE_IDENTITY_TRANSPOSE_OPERATORS = 6
5248

53-
PRUNE_QUANTIZE_OPERATORS = 7
54-
FUSE_PARALLEL_QUANTIZE_OPERATORS = 8
55-
5649
REMOVE_UNUSED_TENSORS = 10
5750
PERMUTE_FULLY_CONNECTED_WEIGHTS_AFTER_RESHAPE = 12
5851

@@ -102,12 +95,6 @@ def __init__(
10295
Optimization.REMOVE_IDENTITY_TRANSPOSE_OPERATORS: RemoveIdentityTransposeOperators(
10396
builder, conversion_config
10497
),
105-
Optimization.PRUNE_QUANTIZE_OPERATORS: PruneQuantizeOperators(
106-
builder, conversion_config
107-
),
108-
Optimization.FUSE_PARALLEL_QUANTIZE_OPERATORS: FuseParallelQuantizeOperators(
109-
builder, conversion_config
110-
),
11198
Optimization.REMOVE_UNUSED_TENSORS: RemoveUnusedTensorsAndBuffers(
11299
builder, conversion_config
113100
),

0 commit comments

Comments
 (0)