Skip to content

Conversation

@StrycekSimon
Copy link
Collaborator

@StrycekSimon StrycekSimon commented Aug 5, 2025

Summary

Adds return number of Neutron nodes in exception.

cc @robert-kalmar @roman-janik-nxp

@pytorch-bot
Copy link

pytorch-bot bot commented Aug 5, 2025

🔗 Helpful Links

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

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

❌ 1 New Failure

As of commit 3c30c9c with merge base 72580d2 (image):

NEW FAILURE - The following job has 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 Aug 5, 2025
@StrycekSimon
Copy link
Collaborator Author

@pytorchbot label "release notes: nxp"

@pytorch-bot pytorch-bot bot added the release notes: nxp Changes to the NXP Neutron backend delegate label Aug 5, 2025
@StrycekSimon StrycekSimon force-pushed the upstream/main-nxp/EIEX-459-upstream-neutron-node-extraction-error-output-enhancement branch from 7355979 to 3c30c9c Compare August 11, 2025 13:23
@pytorch-bot
Copy link

pytorch-bot bot commented Aug 11, 2025

To add the ciflow label ciflow/trunk please first approve the workflows that are awaiting approval (scroll to the bottom of this page).

This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows.

@pytorch-bot
Copy link

pytorch-bot bot commented Aug 11, 2025

To add the ciflow label ciflow/trunk please first approve the workflows that are awaiting approval (scroll to the bottom of this page).

This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows.

@jirioc jirioc requested a review from JakeStevens August 11, 2025 13:43
raise RuntimeError(
"Model converted with neutron-converter has `0` operators instead of `1`."
"Model converted with neutron-converter has `0` operators instead of `1`.",
sub_graph.OperatorsLength(),
Copy link
Contributor

Choose a reason for hiding this comment

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

you've already hardcoded to zero, you can remove this

Copy link
Collaborator Author

@StrycekSimon StrycekSimon Aug 11, 2025

Choose a reason for hiding this comment

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

Don't know how I missed this one...

Edit: Apparently, it is there just to be consistent with the other errors.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@JakeStevens , maybe I missunderstood your point, but the first check verifies there is only one subgraph in the Neutron IR flatbuffer (subgraph is like the pytorch's method). And this check verifies now many nodes are in the first subgraph.

Copy link
Contributor

Choose a reason for hiding this comment

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

@JakeStevens , maybe I missunderstood your point, but the first check verifies there is only one subgraph in the Neutron IR flatbuffer (subgraph is like the pytorch's method). And this check verifies now many nodes are in the first subgraph.

I just mean that sub_graph.OperatorsLength() does not offer any more information in this case for the RuntimeError, since sub_graph.OperatorsLength == 0 and that is explicitly written out in the string already

@robert-kalmar robert-kalmar self-requested a review August 13, 2025 07:13
@robert-kalmar robert-kalmar changed the title NXP backend: Node extraction exception enhancement NXP backend: Return number of Neutron nodes in exception Aug 13, 2025
@robert-kalmar robert-kalmar merged commit 5aa127e into pytorch:main Aug 13, 2025
103 of 106 checks passed
@robert-kalmar robert-kalmar deleted the upstream/main-nxp/EIEX-459-upstream-neutron-node-extraction-error-output-enhancement branch August 13, 2025 07:22
agrima1304 pushed a commit to agrima1304/executorch that referenced this pull request Aug 26, 2025
### Summary

Return number of Neutron nodes in exception.

Co-authored-by: Roman Janik <[email protected]>
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. release notes: nxp Changes to the NXP Neutron backend delegate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants