Skip to content

NXP backend: Add format checks to prevent NodeFormatInference bugs.#20333

Open
MartinPavella wants to merge 2 commits into
pytorch:mainfrom
nxp-upstream:nxg01483/EIEX-913-create-format-asserting-method-in-nodeconverter
Open

NXP backend: Add format checks to prevent NodeFormatInference bugs.#20333
MartinPavella wants to merge 2 commits into
pytorch:mainfrom
nxp-upstream:nxg01483/EIEX-913-create-format-asserting-method-in-nodeconverter

Conversation

@MartinPavella

@MartinPavella MartinPavella commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add format checks to prevent NodeFormatInference bugs. In the past we have had PRs which introduced new ops but failed to update the format inference. The decorator introduced in this PR should reduce the likelihood of it happening again.

Test plan

Unit tests provided.

cc @robert-kalmar @JakeStevens @digantdesai @rascani

@MartinPavella MartinPavella self-assigned this Jun 17, 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 Jun 17, 2026
@pytorch-bot

pytorch-bot Bot commented Jun 17, 2026

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ You can merge normally! (2 Unrelated Failures)

As of commit 6c32d50 with merge base 6021a58 (image):

BROKEN TRUNK - The following jobs failed but were present on the merge base:

👉 Rebase onto the `viable/strict` branch to avoid these failures

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 Jun 17, 2026
@linux-foundation-easycla

linux-foundation-easycla Bot commented Jun 17, 2026

Copy link
Copy Markdown

CLA Not Signed

@MartinPavella

Copy link
Copy Markdown
Collaborator Author

@novak-vaclav please feel free to have a look.

@MartinPavella MartinPavella force-pushed the nxg01483/EIEX-913-create-format-asserting-method-in-nodeconverter branch from b137126 to 17c6490 Compare June 18, 2026 07:10
@novak-vaclav novak-vaclav requested a review from Copilot June 23, 2026 14:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@novak-vaclav novak-vaclav self-requested a review June 23, 2026 14:06
Comment thread backends/nxp/tests/generic_tests/test_node_format_inference.py Outdated
Comment thread backends/nxp/backend/ir/converter/node_converter.py

@novak-vaclav novak-vaclav left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have a few minor comments, otherwise very good 👍

Comment thread backends/nxp/backend/ir/converter/node_converter.py Outdated
Comment thread backends/nxp/backend/ir/converter/node_converter.py
assert not graph_contains_any_of_ops(ep.graph, [ExecutorchDelegateCall])

# Make sure the warning is printed.
assert any(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice 👌

@MartinPavella MartinPavella force-pushed the nxg01483/EIEX-913-create-format-asserting-method-in-nodeconverter branch from 17c6490 to 6c32d50 Compare June 26, 2026 09:09
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.

4 participants