Skip to content

NXP backend: NXP backend: Add option to run test reference quantized in Python#17733

Open
MartinPavella wants to merge 3 commits intopytorch:mainfrom
nxp-upstream:nxg01483/EIEX-740-add-option-to-run-test-reference-quantized-in-python
Open

NXP backend: NXP backend: Add option to run test reference quantized in Python#17733
MartinPavella wants to merge 3 commits intopytorch:mainfrom
nxp-upstream:nxg01483/EIEX-740-add-option-to-run-test-reference-quantized-in-python

Conversation

@MartinPavella
Copy link
Collaborator

@MartinPavella MartinPavella commented Feb 26, 2026

Summary

NXP tests run models delegated to Neutron using the NSYS simulator. To determine correct output, a reference model is run on the CPU. Before, there were 2 choices for the reference, either non-delegated .pte file running in c++, or the original non-quantized float32 PyTorch model running in Python. This PR adds a 3rd option (to run in quantized edge dialect in Python), as well as easy extension to 2 more options in the future.

Test plan

Unit-tests provided.

cc @robert-kalmar @JakeStevens @digantdesai

@MartinPavella MartinPavella self-assigned this Feb 26, 2026
@MartinPavella MartinPavella added module: nxp Issues related to NXP Neutron NPU delegation and code under backends/nxp/ release notes: nxp Changes to the NXP Neutron backend delegate labels Feb 26, 2026
@pytorch-bot
Copy link

pytorch-bot bot commented Feb 26, 2026

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/17733

Note: Links to docs will display an error until the docs builds have been completed.

❌ 2 New Failures

As of commit 6b4e679 with merge base 331ac4a (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 26, 2026
@MartinPavella
Copy link
Collaborator Author

@roman-janik-nxp please review this PR. There was some error and my previous PR is corrupted. The changes here should be identical to what you have approved in the other PR.

@MartinPavella
Copy link
Collaborator Author

MartinPavella commented Feb 26, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. module: nxp Issues related to NXP Neutron NPU delegation and code under backends/nxp/ release notes: nxp Changes to the NXP Neutron backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant