Skip to content

Commit 55fe42b

Browse files
NXP backend: Rename post-processing pass directory. (#16508)
### Summary Rename directory containing NeutronIR post-processing passes to better reflect its contents. ### Test plan N/A cc @robert-kalmar
1 parent 23e1ca5 commit 55fe42b

File tree

12 files changed

+34
-30
lines changed

12 files changed

+34
-30
lines changed

backends/nxp/backend/ir/converter/builder/model_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Copyright 2023 Martin Pavella
3-
# Copyright 2023-2025 NXP
3+
# Copyright 2023-2026 NXP
44
#
55
# License: MIT
66
# See the LICENSE_MIT for more details.
@@ -34,6 +34,7 @@
3434
BuiltinOperator,
3535
)
3636
from executorch.backends.nxp.backend.ir.lib.tflite.TensorType import TensorType
37+
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing import optimizer
3738
from executorch.backends.nxp.backend.ir.tensor_formatting import TensorFormat
3839
from executorch.backends.nxp.backend.ir.tflite_generator.builtin_options import (
3940
cast_options,
@@ -49,7 +50,6 @@
4950
from executorch.backends.nxp.backend.ir.tflite_generator.custom_options.flex_transpose_options import (
5051
FlexTranspose,
5152
)
52-
from executorch.backends.nxp.backend.ir.tflite_optimizer import optimizer
5353
from executorch.backends.nxp.backend.neutron_operator_support import (
5454
transposition_is_supported_on_neutron,
5555
)

backends/nxp/backend/ir/tflite_optimizer/README.md renamed to backends/nxp/backend/ir/neutron_ir_post_processing/README.md

File renamed without changes.

backends/nxp/backend/ir/tflite_optimizer/__init__.py renamed to backends/nxp/backend/ir/neutron_ir_post_processing/__init__.py

File renamed without changes.

backends/nxp/backend/ir/tflite_optimizer/graph_utils.py renamed to backends/nxp/backend/ir/neutron_ir_post_processing/graph_utils.py

File renamed without changes.

backends/nxp/backend/ir/tflite_optimizer/operator_rules.py renamed to backends/nxp/backend/ir/neutron_ir_post_processing/operator_rules.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024-2025 NXP
1+
# Copyright 2024-2026 NXP
22
#
33
# This source code is licensed under the BSD-style license found in the
44
# LICENSE file in the root directory of this source tree.
@@ -10,15 +10,15 @@
1010
from executorch.backends.nxp.backend.ir.lib.tflite.ActivationFunctionType import (
1111
ActivationFunctionType,
1212
)
13-
from executorch.backends.nxp.backend.ir.tflite_generator import tflite_model
14-
from executorch.backends.nxp.backend.ir.tflite_optimizer.graph_utils import (
13+
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.graph_utils import (
1514
NameToTensorMap,
1615
operator_is_type,
1716
)
18-
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.base_optimization import (
17+
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.optimizations.base_optimization import (
1918
InputTensorToOpsMap,
2019
OutputTensorToOpMap,
2120
)
21+
from executorch.backends.nxp.backend.ir.tflite_generator import tflite_model
2222

2323

2424
class OpRule(ABC):

backends/nxp/backend/ir/tflite_optimizer/optimizations/__init__.py renamed to backends/nxp/backend/ir/neutron_ir_post_processing/optimizations/__init__.py

File renamed without changes.

backends/nxp/backend/ir/tflite_optimizer/optimizations/base_optimization.py renamed to backends/nxp/backend/ir/neutron_ir_post_processing/optimizations/base_optimization.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024 NXP
1+
# Copyright 2024-2026 NXP
22
#
33
# This source code is licensed under the BSD-style license found in the
44
# LICENSE file in the root directory of this source tree.
@@ -7,7 +7,7 @@
77

88
from executorch.backends.nxp.backend.ir.conversion_config import ConversionConfig
99
from executorch.backends.nxp.backend.ir.converter.builder import model_builder
10-
from executorch.backends.nxp.backend.ir.tflite_optimizer.graph_utils import (
10+
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.graph_utils import (
1111
create_tensor_to_operator_dictionaries,
1212
InputTensorToOpsMap,
1313
OutputTensorToOpMap,

backends/nxp/backend/ir/tflite_optimizer/optimizations/permute_fully_connected_weights_after_reshape.py renamed to backends/nxp/backend/ir/neutron_ir_post_processing/optimizations/permute_fully_connected_weights_after_reshape.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024-2025 NXP
1+
# Copyright 2024-2026 NXP
22
#
33
# This source code is licensed under the BSD-style license found in the
44
# LICENSE file in the root directory of this source tree.
@@ -7,14 +7,14 @@
77

88
from executorch.backends.nxp.backend.ir import logger
99
from executorch.backends.nxp.backend.ir.converter.conversion import translator
10-
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.base_optimization import (
10+
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.optimizations.base_optimization import (
1111
BaseOptimization,
1212
)
13-
from executorch.backends.nxp.backend.ir.tflite_optimizer.pattern_matcher import (
13+
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.pattern_matcher import (
1414
Op,
1515
PatternMatcher,
1616
)
17-
from executorch.backends.nxp.backend.ir.tflite_optimizer.tensor_rules import (
17+
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.tensor_rules import (
1818
TensorDimensionsMatch,
1919
TensorHasRank,
2020
TensorIsChannelsFirst,

backends/nxp/backend/ir/tflite_optimizer/optimizations/prune_transpose_operators.py renamed to backends/nxp/backend/ir/neutron_ir_post_processing/optimizations/prune_transpose_operators.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2024-2025 NXP
1+
# Copyright 2024-2026 NXP
22
#
33
# This source code is licensed under the BSD-style license found in the
44
# LICENSE file in the root directory of this source tree.
@@ -9,21 +9,21 @@
99
apply_permutation_to,
1010
combine_permutations,
1111
)
12-
from executorch.backends.nxp.backend.ir.tflite_generator import tflite_model
13-
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.base_optimization import (
12+
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.optimizations.base_optimization import (
1413
BaseOptimization,
1514
)
16-
from executorch.backends.nxp.backend.ir.tflite_optimizer.pattern_matcher import (
15+
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.pattern_matcher import (
1716
MultipleSameOps,
1817
Op,
1918
PatternMatcher,
2019
)
21-
from executorch.backends.nxp.backend.ir.tflite_optimizer.tensor_rules import (
20+
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.tensor_rules import (
2221
RuleOr,
2322
TensorHasData,
2423
TensorIsNotModelOutput,
2524
TensorsHaveData,
2625
)
26+
from executorch.backends.nxp.backend.ir.tflite_generator import tflite_model
2727
from executorch.backends.nxp.backend.neutron_operator_support import (
2828
transposition_is_supported_on_neutron,
2929
)

backends/nxp/backend/ir/tflite_optimizer/optimizer.py renamed to backends/nxp/backend/ir/neutron_ir_post_processing/optimizer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Copyright 2023 Martin Pavella
3-
# Copyright 2024-2025 NXP
3+
# Copyright 2024-2026 NXP
44
#
55
# License: MIT
66
# See the LICENSE_MIT for more details.
@@ -11,10 +11,10 @@
1111

1212
from executorch.backends.nxp.backend.ir import logger
1313
from executorch.backends.nxp.backend.ir.conversion_config import ConversionConfig
14-
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.permute_fully_connected_weights_after_reshape import (
14+
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.optimizations.permute_fully_connected_weights_after_reshape import (
1515
PermuteFullyConnectedWeightsAfterReshape,
1616
)
17-
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.prune_transpose_operators import (
17+
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.optimizations.prune_transpose_operators import (
1818
FuseTransposeOperators,
1919
RemoveIdentityTransposeOperators,
2020
)

0 commit comments

Comments
 (0)