-
Notifications
You must be signed in to change notification settings - Fork 1.1k
NXP backend: Add Neutron backend to /backend/test/suite/operators testing.
#21712
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
MartinPavella
merged 6 commits into
pytorch:main
from
nxp-upstream:nxg01483/EIEX-1036-add-neutron-backend-to-the-automatic-test-suite-harness-testing
Aug 20, 2026
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
9584e5d
Fix handling of `alpha` attribute for `add` and `sub`.
MartinPavella ed4936c
Fix handling of `dim=None` attribute for `mean`.
MartinPavella 9951cba
Fix handling of `dilation` attribute for "transpose conv".
MartinPavella 0c9c0ff
Fix delegation of `clamp` and `hardtanh`.
MartinPavella 4e66ebe
Add Neutron backend to `/backend/test/suite/operators` testing.
MartinPavella bfb2aa6
Updates based on review.
MartinPavella File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| name: Test NXP Backend | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: 0 2 * * * | ||
| push: | ||
| branches: | ||
| - main | ||
| - release/* | ||
| tags: | ||
| - ciflow/nightly/* | ||
| pull_request: | ||
| workflow_dispatch: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}-${{ github.event_name == 'schedule' }} | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| # Emits PR diff file list; non-PR events emit '*' so the per-job | ||
| # `if:` short-circuits via `event_name != 'pull_request'`. | ||
| changed-files: | ||
| name: Get changed files | ||
| uses: ./.github/workflows/_get-changed-files.yml | ||
|
|
||
| test-nxp: | ||
| needs: changed-files | ||
| # Every case in this flow runs the NSYS Neutron simulator, so the full | ||
| # eIQ Toolkit install and nxp_executor_runner build are always required. | ||
| # Path-gate on pull_request to avoid running on unrelated changes, while | ||
| # still running in full on the nightly schedule and on pushes to main. | ||
| if: | | ||
| github.event_name != 'pull_request' || | ||
| contains(needs.changed-files.outputs.changed-files, 'backends/nxp') || | ||
| contains(needs.changed-files.outputs.changed-files, 'examples/nxp') || | ||
| contains(needs.changed-files.outputs.changed-files, 'backends/test/suite') || | ||
| contains(needs.changed-files.outputs.changed-files, 'backends/test/harness') || | ||
| contains(needs.changed-files.outputs.changed-files, '.ci/scripts/test_backend.sh') || | ||
| contains(needs.changed-files.outputs.changed-files, '.github/workflows/test-backend-nxp.yml') || | ||
| contains(needs.changed-files.outputs.changed-files, '.github/workflows/_test_backend.yml') | ||
| uses: ./.github/workflows/_test_backend.yml | ||
| with: | ||
| backend: nxp | ||
| flows: '["nxp_neutron_imxrt700_int8_ptq"]' | ||
| # The models suite (torchvision/torchaudio) is excluded until a curated | ||
| # list of models known to pass on the Neutron backend is established. | ||
| exclude: '[{"flow": "nxp_neutron_imxrt700_int8_ptq", "suite": "models"}]' | ||
| ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }} | ||
| timeout: 150 | ||
| run-linux: true | ||
| docker-image: ci-image:executorch-ubuntu-22.04-clang12 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change was introduced because the
HardTanhConverterinherits fromClampConverterand uses its methods while overriding others. So onlyClampConverterimplementsis_supported_on_target, which internally callsget_boundswhich is implemented in botch classes differently. Therefore,is_supported_on_targetmust be a class method.(It worked before this commit because the
ClampConverteractually defined theis_supported_on_targetas a class method, even thought its parent classNodeConverterdeclared is as a static method.)