Skip to content

Commit eac6ac9

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

File tree

2 files changed

+0
-101
lines changed

2 files changed

+0
-101
lines changed

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

Lines changed: 0 additions & 94 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
@@ -23,9 +23,6 @@
2323
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.fuse_fully_connected_and_add_operators import (
2424
FuseFullyConnectedAndAddOperators,
2525
)
26-
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.fuse_quanitze_into_preceding_ops import (
27-
FuseQuantizeIntoPrecedingOps,
28-
)
2926
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.keep_one_empty_buffer import (
3027
KeepOneEmptyBuffer,
3128
)
@@ -69,7 +66,6 @@ class Optimization(Enum):
6966

7067
PRUNE_QUANTIZE_OPERATORS = 7
7168
FUSE_PARALLEL_QUANTIZE_OPERATORS = 8
72-
FUSE_QUANTIZE_INTO_PRECEDING_OPS = 9
7369

7470
REMOVE_UNUSED_TENSORS = 10
7571
ELIMINATE_DEAD_BRANCHES = 11
@@ -136,9 +132,6 @@ def __init__(
136132
Optimization.FUSE_PARALLEL_QUANTIZE_OPERATORS: FuseParallelQuantizeOperators(
137133
builder, conversion_config
138134
),
139-
Optimization.FUSE_QUANTIZE_INTO_PRECEDING_OPS: FuseQuantizeIntoPrecedingOps(
140-
builder, conversion_config
141-
),
142135
Optimization.REMOVE_UNUSED_TENSORS: RemoveUnusedTensorsAndBuffers(
143136
builder, conversion_config
144137
),

0 commit comments

Comments
 (0)