Skip to content

Commit b2f0a5a

Browse files
NXP backend: Update eiq-neutron-sdk to 3.0.1 (pytorch#18201)
### Summary Update eiq-neutron-sdk to 3.0.1 ### Test plan Covered by existing unit-tests --------- Co-authored-by: Jiri Ocenasek <jiri.ocenasek@nxp.com>
1 parent 3f33e54 commit b2f0a5a

5 files changed

Lines changed: 7 additions & 28 deletions

File tree

backends/nxp/requirements-eiq.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
--index-url https://eiq.nxp.com/repository
2-
eiq-neutron-sdk==3.0.0
2+
eiq-neutron-sdk==3.0.1
33
eiq_nsys

backends/nxp/tests/ir/converter/node_converter/test_constant_pad_nd_converter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ def test_constant_pad_nd__delegation__formatless__unsupported_padding(use_qat):
191191
)
192192

193193

194+
@pytest.mark.xfail(reason="Regression in Neutron SW 3.0.1 (AIR-14264)", strict=True)
194195
def test_constant_pad_nd__delegation__channels_first__supported_padding(use_qat):
195196
input_shape = (2, 4, 6, 8) # Channels first -> the second dim (4) will be padded.
196197
paddings = [1, 2, 3, 4, 0, 0] # The second dim is padded using the paddings[4:6].

backends/nxp/tests/ir/converter/node_converter/test_conv_converter.py

Lines changed: 3 additions & 25 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.
@@ -83,18 +83,7 @@ def test_conv1d_quant_conversion(bias, stride, dilation, kernel_size, mocker, us
8383

8484
@pytest.mark.parametrize("stride", [1, 2])
8585
@pytest.mark.parametrize("dilation", [2, 1])
86-
@pytest.mark.parametrize(
87-
"kernel_size",
88-
[
89-
pytest.param(
90-
(1,),
91-
marks=pytest.mark.xfail(
92-
reason="Regression in Neutron SW 2.1.x (AIR-13336)", strict=True
93-
),
94-
),
95-
(3,),
96-
],
97-
)
86+
@pytest.mark.parametrize("kernel_size", [(1,), (3,)])
9887
@pytest.mark.parametrize("padding", [(1,), 2])
9988
def test_conv1d_quant_conversion__padded(
10089
stride, dilation, kernel_size, padding, mocker, use_qat
@@ -201,18 +190,7 @@ def test_conv1d_quant_conversion__depthwise(
201190

202191
@pytest.mark.parametrize("stride", [1, 2])
203192
@pytest.mark.parametrize("dilation", [2, 1])
204-
@pytest.mark.parametrize(
205-
"kernel_size",
206-
[
207-
pytest.param(
208-
(1,),
209-
marks=pytest.mark.xfail(
210-
reason="Regression in Neutron SW 2.1.x (AIR-13336)", strict=True
211-
),
212-
),
213-
(3,),
214-
],
215-
)
193+
@pytest.mark.parametrize("kernel_size", [(1,), (3,)])
216194
@pytest.mark.parametrize("padding", [(1,), 2])
217195
def test_conv1d_quant_conversion__depthwise__padded(
218196
stride, dilation, kernel_size, padding, mocker, use_qat

backends/nxp/tests/test_context_sensitive_delegation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def test_noop_partitions__add_mul_sub_div__forced_delegation():
172172

173173
with pytest.raises(
174174
RuntimeError,
175-
match="Model converted with neutron-converter has `2` operators instead of `1`.",
175+
match="Model converted with neutron-converter does not contain a NeutronGraph node.",
176176
):
177177
to_quantized_edge_program(
178178
module, input_shape, custom_delegation_options=cdo

examples/nxp/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set -u
88
EIQ_PYPI_URL="${EIQ_PYPI_URL:-https://eiq.nxp.com/repository}"
99

1010
# Install eIQ Neutron dependencies - SDK and simulator
11-
pip install --index-url ${EIQ_PYPI_URL} eiq-neutron-sdk==3.0.0 eiq_nsys
11+
pip install --index-url ${EIQ_PYPI_URL} eiq-neutron-sdk==3.0.1 eiq_nsys
1212

1313
# Get the directory of the current script
1414
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

0 commit comments

Comments
 (0)