Skip to content

Commit 42bddf0

Browse files
Remove optimization in remove_unused_tensors_and_buffers.py
1 parent ee1ef03 commit 42bddf0

File tree

2 files changed

+0
-69
lines changed

2 files changed

+0
-69
lines changed

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

Lines changed: 0 additions & 62 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
@@ -37,9 +37,6 @@
3737
FuseTransposeOperators,
3838
RemoveIdentityTransposeOperators,
3939
)
40-
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.remove_unused_tensors_and_buffers import (
41-
RemoveUnusedTensorsAndBuffers,
42-
)
4340

4441

4542
class Optimization(Enum):
@@ -53,7 +50,6 @@ class Optimization(Enum):
5350
PRUNE_QUANTIZE_OPERATORS = 7
5451
FUSE_PARALLEL_QUANTIZE_OPERATORS = 8
5552

56-
REMOVE_UNUSED_TENSORS = 10
5753
PERMUTE_FULLY_CONNECTED_WEIGHTS_AFTER_RESHAPE = 12
5854

5955
MOVE_ACTIVATION_BEFORE_CONCAT = 15
@@ -108,9 +104,6 @@ def __init__(
108104
Optimization.FUSE_PARALLEL_QUANTIZE_OPERATORS: FuseParallelQuantizeOperators(
109105
builder, conversion_config
110106
),
111-
Optimization.REMOVE_UNUSED_TENSORS: RemoveUnusedTensorsAndBuffers(
112-
builder, conversion_config
113-
),
114107
Optimization.PERMUTE_FULLY_CONNECTED_WEIGHTS_AFTER_RESHAPE: PermuteFullyConnectedWeightsAfterReshape(
115108
builder, conversion_config
116109
),

0 commit comments

Comments
 (0)