Skip to content

Commit 9034245

Browse files
NXP backend: Remove optimization in remove_unused_tensors_and_buffers.py (#13415)
### Summary Remove unnecessary optimization in remove_unused_tensors_and_buffers.py in IR optimizer. ### Test plan All tests where a subgraph is delegated to Neutron.
1 parent 8ba92a9 commit 9034245

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
@@ -33,9 +33,6 @@
3333
FuseTransposeOperators,
3434
RemoveIdentityTransposeOperators,
3535
)
36-
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.remove_unused_tensors_and_buffers import (
37-
RemoveUnusedTensorsAndBuffers,
38-
)
3936

4037

4138
class Optimization(Enum):
@@ -46,7 +43,6 @@ class Optimization(Enum):
4643
FUSE_TRANSPOSE_OPERATORS = 5
4744
REMOVE_IDENTITY_TRANSPOSE_OPERATORS = 6
4845

49-
REMOVE_UNUSED_TENSORS = 10
5046
PERMUTE_FULLY_CONNECTED_WEIGHTS_AFTER_RESHAPE = 12
5147

5248
MOVE_ACTIVATION_BEFORE_CONCAT = 15
@@ -95,9 +91,6 @@ def __init__(
9591
Optimization.REMOVE_IDENTITY_TRANSPOSE_OPERATORS: RemoveIdentityTransposeOperators(
9692
builder, conversion_config
9793
),
98-
Optimization.REMOVE_UNUSED_TENSORS: RemoveUnusedTensorsAndBuffers(
99-
builder, conversion_config
100-
),
10194
Optimization.PERMUTE_FULLY_CONNECTED_WEIGHTS_AFTER_RESHAPE: PermuteFullyConnectedWeightsAfterReshape(
10295
builder, conversion_config
10396
),

0 commit comments

Comments
 (0)