From 8968d383b360979091df5635aec44032f16f4dae Mon Sep 17 00:00:00 2001 From: Robert Kalmar Date: Mon, 26 May 2025 14:52:52 +0200 Subject: [PATCH] NXP backend: Fix Copyright findings --- .../node_converters/ops_converters/sigmoid_converter.py | 1 - .../ir/converter/node_converters/shared/conv_utils.py | 5 ++--- .../ir/tflite_generator/builtin_options/add_n_options.py | 1 + .../ir/tflite_generator/builtin_options/add_options.py | 1 + .../builtin_options/average_pool_2d_options.py | 1 + .../tflite_generator/builtin_options/leaky_relu_options.py | 1 + .../tflite_generator/builtin_options/log_softmax_options.py | 1 + .../tflite_generator/builtin_options/max_pool_2d_options.py | 1 + .../ir/tflite_generator/builtin_options/reshape_options.py | 1 + .../ir/tflite_generator/builtin_options/softmax_options.py | 1 + .../ir/tflite_generator/builtin_options/sub_options.py | 1 + .../ir/tflite_generator/builtin_options/transpose_options.py | 1 + backends/nxp/neutron_partitioner.py | 2 +- .../ir/converter/node_converter/test_sigmoid_converter.py | 1 - .../tests/ir/edge_passes/test_remove_io_quant_ops_pass.py | 3 ++- 15 files changed, 15 insertions(+), 7 deletions(-) diff --git a/backends/nxp/backend/ir/converter/node_converters/ops_converters/sigmoid_converter.py b/backends/nxp/backend/ir/converter/node_converters/ops_converters/sigmoid_converter.py index a9af12f60dd..dfbb6a4a9b3 100644 --- a/backends/nxp/backend/ir/converter/node_converters/ops_converters/sigmoid_converter.py +++ b/backends/nxp/backend/ir/converter/node_converters/ops_converters/sigmoid_converter.py @@ -1,5 +1,4 @@ # Copyright 2025 NXP -# All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. diff --git a/backends/nxp/backend/ir/converter/node_converters/shared/conv_utils.py b/backends/nxp/backend/ir/converter/node_converters/shared/conv_utils.py index 73bf76a830d..ce03d4f6f15 100755 --- a/backends/nxp/backend/ir/converter/node_converters/shared/conv_utils.py +++ b/backends/nxp/backend/ir/converter/node_converters/shared/conv_utils.py @@ -1,8 +1,7 @@ # Copyright 2023-2025 NXP # -# License: LA_OPT_NXP_Software_License -# See the LICENSE_LA_OPT_NXP_Software_License for more details. -# +# This source code is licensed under the BSD-style license found in the +# LICENSE file in the root directory of this source tree. from copy import copy from dataclasses import dataclass diff --git a/backends/nxp/backend/ir/tflite_generator/builtin_options/add_n_options.py b/backends/nxp/backend/ir/tflite_generator/builtin_options/add_n_options.py index 2646f326852..744d2b332b3 100755 --- a/backends/nxp/backend/ir/tflite_generator/builtin_options/add_n_options.py +++ b/backends/nxp/backend/ir/tflite_generator/builtin_options/add_n_options.py @@ -1,5 +1,6 @@ # # Copyright 2023 Martin Pavella +# Copyright 2024 NXP # # License: MIT # See the LICENSE_MIT for more details. diff --git a/backends/nxp/backend/ir/tflite_generator/builtin_options/add_options.py b/backends/nxp/backend/ir/tflite_generator/builtin_options/add_options.py index 37c04a84588..48c82a9974f 100755 --- a/backends/nxp/backend/ir/tflite_generator/builtin_options/add_options.py +++ b/backends/nxp/backend/ir/tflite_generator/builtin_options/add_options.py @@ -1,5 +1,6 @@ # # Copyright 2023 Martin Pavella +# Copyright 2024 NXP # # License: MIT # See the LICENSE_MIT for more details. diff --git a/backends/nxp/backend/ir/tflite_generator/builtin_options/average_pool_2d_options.py b/backends/nxp/backend/ir/tflite_generator/builtin_options/average_pool_2d_options.py index d3f59b3844d..1bafc61cb60 100755 --- a/backends/nxp/backend/ir/tflite_generator/builtin_options/average_pool_2d_options.py +++ b/backends/nxp/backend/ir/tflite_generator/builtin_options/average_pool_2d_options.py @@ -1,5 +1,6 @@ # # Copyright 2023 Martin Pavella +# Copyright 2024 NXP # # License: MIT # See the LICENSE_MIT for more details. diff --git a/backends/nxp/backend/ir/tflite_generator/builtin_options/leaky_relu_options.py b/backends/nxp/backend/ir/tflite_generator/builtin_options/leaky_relu_options.py index 6ba7bb65d72..848faa6c34b 100755 --- a/backends/nxp/backend/ir/tflite_generator/builtin_options/leaky_relu_options.py +++ b/backends/nxp/backend/ir/tflite_generator/builtin_options/leaky_relu_options.py @@ -1,5 +1,6 @@ # # Copyright 2023 Martin Pavella +# Copyright 2024 NXP # # License: MIT # See the LICENSE_MIT for more details. diff --git a/backends/nxp/backend/ir/tflite_generator/builtin_options/log_softmax_options.py b/backends/nxp/backend/ir/tflite_generator/builtin_options/log_softmax_options.py index 163cbfb7cf9..a700c524562 100755 --- a/backends/nxp/backend/ir/tflite_generator/builtin_options/log_softmax_options.py +++ b/backends/nxp/backend/ir/tflite_generator/builtin_options/log_softmax_options.py @@ -1,5 +1,6 @@ # # Copyright 2023 Martin Pavella +# Copyright 2024 NXP # # License: MIT # See the LICENSE_MIT for more details. diff --git a/backends/nxp/backend/ir/tflite_generator/builtin_options/max_pool_2d_options.py b/backends/nxp/backend/ir/tflite_generator/builtin_options/max_pool_2d_options.py index b87a2f46de2..13d827d98f3 100755 --- a/backends/nxp/backend/ir/tflite_generator/builtin_options/max_pool_2d_options.py +++ b/backends/nxp/backend/ir/tflite_generator/builtin_options/max_pool_2d_options.py @@ -1,5 +1,6 @@ # # Copyright 2023 Martin Pavella +# Copyright 2024 NXP # # License: MIT # See the LICENSE_MIT for more details. diff --git a/backends/nxp/backend/ir/tflite_generator/builtin_options/reshape_options.py b/backends/nxp/backend/ir/tflite_generator/builtin_options/reshape_options.py index 800bd645b8a..66e1e836c38 100755 --- a/backends/nxp/backend/ir/tflite_generator/builtin_options/reshape_options.py +++ b/backends/nxp/backend/ir/tflite_generator/builtin_options/reshape_options.py @@ -1,5 +1,6 @@ # # Copyright 2023 Martin Pavella +# Copyright 2024 NXP # # License: MIT # See the LICENSE_MIT for more details. diff --git a/backends/nxp/backend/ir/tflite_generator/builtin_options/softmax_options.py b/backends/nxp/backend/ir/tflite_generator/builtin_options/softmax_options.py index 3001f659d40..ce828c0e1fe 100755 --- a/backends/nxp/backend/ir/tflite_generator/builtin_options/softmax_options.py +++ b/backends/nxp/backend/ir/tflite_generator/builtin_options/softmax_options.py @@ -1,5 +1,6 @@ # # Copyright 2023 Martin Pavella +# Copyright 2024 NXP # # License: MIT # See the LICENSE_MIT for more details. diff --git a/backends/nxp/backend/ir/tflite_generator/builtin_options/sub_options.py b/backends/nxp/backend/ir/tflite_generator/builtin_options/sub_options.py index 16dcd1e64ab..226b5bb498d 100755 --- a/backends/nxp/backend/ir/tflite_generator/builtin_options/sub_options.py +++ b/backends/nxp/backend/ir/tflite_generator/builtin_options/sub_options.py @@ -1,5 +1,6 @@ # # Copyright 2023 Martin Pavella +# Copyright 2024 NXP # # License: MIT # See the LICENSE_MIT for more details. diff --git a/backends/nxp/backend/ir/tflite_generator/builtin_options/transpose_options.py b/backends/nxp/backend/ir/tflite_generator/builtin_options/transpose_options.py index 5869b1ed315..48052690b18 100755 --- a/backends/nxp/backend/ir/tflite_generator/builtin_options/transpose_options.py +++ b/backends/nxp/backend/ir/tflite_generator/builtin_options/transpose_options.py @@ -1,5 +1,6 @@ # # Copyright 2023 Martin Pavella +# Copyright 2024 NXP # # License: MIT # See the LICENSE_MIT for more details. diff --git a/backends/nxp/neutron_partitioner.py b/backends/nxp/neutron_partitioner.py index 952946ae26d..d4ab6bc1305 100644 --- a/backends/nxp/neutron_partitioner.py +++ b/backends/nxp/neutron_partitioner.py @@ -1,4 +1,4 @@ -# Copyright (c) 2024-2025 NXP +# Copyright 2024-2025 NXP # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. diff --git a/backends/nxp/tests/ir/converter/node_converter/test_sigmoid_converter.py b/backends/nxp/tests/ir/converter/node_converter/test_sigmoid_converter.py index 9139dd97f9a..c5d7d4d6a38 100644 --- a/backends/nxp/tests/ir/converter/node_converter/test_sigmoid_converter.py +++ b/backends/nxp/tests/ir/converter/node_converter/test_sigmoid_converter.py @@ -1,5 +1,4 @@ # Copyright 2025 NXP -# All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. diff --git a/backends/nxp/tests/ir/edge_passes/test_remove_io_quant_ops_pass.py b/backends/nxp/tests/ir/edge_passes/test_remove_io_quant_ops_pass.py index d7920aa55d8..35bdc11d29a 100644 --- a/backends/nxp/tests/ir/edge_passes/test_remove_io_quant_ops_pass.py +++ b/backends/nxp/tests/ir/edge_passes/test_remove_io_quant_ops_pass.py @@ -1,7 +1,8 @@ -# Copyright 2025 NXP +# Copyright 2024-2025 NXP # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. + import itertools import executorch.kernels.quantized # noqa F401