Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions backends/nxp/backend/ir/converter/builder/model_builder.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Copyright 2023 Martin Pavella
# Copyright 2023-2025 NXP
# Copyright 2023-2026 NXP
#
# License: MIT
# See the LICENSE_MIT for more details.
Expand Down Expand Up @@ -34,6 +34,7 @@
BuiltinOperator,
)
from executorch.backends.nxp.backend.ir.lib.tflite.TensorType import TensorType
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing import optimizer
from executorch.backends.nxp.backend.ir.tensor_formatting import TensorFormat
from executorch.backends.nxp.backend.ir.tflite_generator.builtin_options import (
cast_options,
Expand All @@ -49,7 +50,6 @@
from executorch.backends.nxp.backend.ir.tflite_generator.custom_options.flex_transpose_options import (
FlexTranspose,
)
from executorch.backends.nxp.backend.ir.tflite_optimizer import optimizer
from executorch.backends.nxp.backend.neutron_operator_support import (
transposition_is_supported_on_neutron,
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024-2025 NXP
# Copyright 2024-2026 NXP
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
Expand All @@ -10,15 +10,15 @@
from executorch.backends.nxp.backend.ir.lib.tflite.ActivationFunctionType import (
ActivationFunctionType,
)
from executorch.backends.nxp.backend.ir.tflite_generator import tflite_model
from executorch.backends.nxp.backend.ir.tflite_optimizer.graph_utils import (
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.graph_utils import (
NameToTensorMap,
operator_is_type,
)
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.base_optimization import (
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.optimizations.base_optimization import (
InputTensorToOpsMap,
OutputTensorToOpMap,
)
from executorch.backends.nxp.backend.ir.tflite_generator import tflite_model


class OpRule(ABC):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 NXP
# Copyright 2024-2026 NXP
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
Expand All @@ -7,7 +7,7 @@

from executorch.backends.nxp.backend.ir.conversion_config import ConversionConfig
from executorch.backends.nxp.backend.ir.converter.builder import model_builder
from executorch.backends.nxp.backend.ir.tflite_optimizer.graph_utils import (
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.graph_utils import (
create_tensor_to_operator_dictionaries,
InputTensorToOpsMap,
OutputTensorToOpMap,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024-2025 NXP
# Copyright 2024-2026 NXP
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
Expand All @@ -7,14 +7,14 @@

from executorch.backends.nxp.backend.ir import logger
from executorch.backends.nxp.backend.ir.converter.conversion import translator
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.base_optimization import (
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.optimizations.base_optimization import (
BaseOptimization,
)
from executorch.backends.nxp.backend.ir.tflite_optimizer.pattern_matcher import (
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.pattern_matcher import (
Op,
PatternMatcher,
)
from executorch.backends.nxp.backend.ir.tflite_optimizer.tensor_rules import (
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.tensor_rules import (
TensorDimensionsMatch,
TensorHasRank,
TensorIsChannelsFirst,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024-2025 NXP
# Copyright 2024-2026 NXP
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
Expand All @@ -9,21 +9,21 @@
apply_permutation_to,
combine_permutations,
)
from executorch.backends.nxp.backend.ir.tflite_generator import tflite_model
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.base_optimization import (
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.optimizations.base_optimization import (
BaseOptimization,
)
from executorch.backends.nxp.backend.ir.tflite_optimizer.pattern_matcher import (
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.pattern_matcher import (
MultipleSameOps,
Op,
PatternMatcher,
)
from executorch.backends.nxp.backend.ir.tflite_optimizer.tensor_rules import (
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.tensor_rules import (
RuleOr,
TensorHasData,
TensorIsNotModelOutput,
TensorsHaveData,
)
from executorch.backends.nxp.backend.ir.tflite_generator import tflite_model
from executorch.backends.nxp.backend.neutron_operator_support import (
transposition_is_supported_on_neutron,
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Copyright 2023 Martin Pavella
# Copyright 2024-2025 NXP
# Copyright 2024-2026 NXP
#
# License: MIT
# See the LICENSE_MIT for more details.
Expand All @@ -11,10 +11,10 @@

from executorch.backends.nxp.backend.ir import logger
from executorch.backends.nxp.backend.ir.conversion_config import ConversionConfig
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.permute_fully_connected_weights_after_reshape import (
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.optimizations.permute_fully_connected_weights_after_reshape import (
PermuteFullyConnectedWeightsAfterReshape,
)
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.prune_transpose_operators import (
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.optimizations.prune_transpose_operators import (
FuseTransposeOperators,
RemoveIdentityTransposeOperators,
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 NXP
# Copyright 2024-2026 NXP
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
Expand All @@ -10,17 +10,21 @@

import executorch.backends.nxp.backend.ir.converter.builder.model_builder as model_builder
from executorch.backends.nxp.backend.ir import logger
from executorch.backends.nxp.backend.ir.tflite_generator import tflite_model
from executorch.backends.nxp.backend.ir.tflite_optimizer.graph_utils import (
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.graph_utils import (
builtin_operator_for_op_type,
create_tensor_to_operator_dictionaries,
InputTensorToOpsMap,
NameToTensorMap,
operator_is_type,
OutputTensorToOpMap,
)
from executorch.backends.nxp.backend.ir.tflite_optimizer.operator_rules import OpRule
from executorch.backends.nxp.backend.ir.tflite_optimizer.tensor_rules import TensorRule
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.operator_rules import (
OpRule,
)
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.tensor_rules import (
TensorRule,
)
from executorch.backends.nxp.backend.ir.tflite_generator import tflite_model


class OperatorBlock(ABC):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 NXP
# Copyright 2024-2026 NXP
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.
Expand All @@ -10,16 +10,16 @@

import numpy as np
from executorch.backends.nxp.backend.ir.lib.tflite.TensorType import TensorType
from executorch.backends.nxp.backend.ir.tensor_formatting import TensorFormat
from executorch.backends.nxp.backend.ir.tflite_generator import tflite_model
from executorch.backends.nxp.backend.ir.tflite_optimizer.optimizations.base_optimization import (
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.optimizations.base_optimization import (
InputTensorToOpsMap,
OutputTensorToOpMap,
)
from executorch.backends.nxp.backend.ir.tflite_optimizer.pattern_matcher import (
from executorch.backends.nxp.backend.ir.neutron_ir_post_processing.pattern_matcher import (
NameToTensorMap,
operator_is_type,
)
from executorch.backends.nxp.backend.ir.tensor_formatting import TensorFormat
from executorch.backends.nxp.backend.ir.tflite_generator import tflite_model


class TensorRule(ABC):
Expand Down
Loading