Skip to content

Conversation

kimishpatel
Copy link
Contributor

Summary:
Often when aten graph has symbolic shape nodes, and inbuilt ops like gt/lt etc.,
during re-export of such a graph 'from_node' information is lost from node.meta. As a result we loose connection
between edge IR nodes and aten nodes for such ops. By default we validate that every edge IR node has corresponding
node in aten IR, and when such validation fails numeric debugger falls back to edge IR as reference graph. This
flag allows one to override such behavior and make best effort comparison.

Reviewed By: Gasoonjia

Differential Revision: D81784685

Copy link

pytorch-bot bot commented Sep 10, 2025

🔗 Helpful Links

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

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

❌ 3 Cancelled Jobs, 2 Unrelated Failures

As of commit 69074bc with merge base 8358516 (image):

CANCELLED JOBS - The following jobs were cancelled. Please retry:

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 Sep 10, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81784685

Copy link

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

kimishpatel added a commit to kimishpatel/executorch-1 that referenced this pull request Sep 10, 2025
Summary:

Often when aten graph has symbolic shape nodes, and inbuilt ops like gt/lt etc.,
during re-export of such a graph 'from_node' information is lost from node.meta. As a result we loose connection
between edge IR nodes and aten nodes for such ops. By default we validate that every edge IR node has corresponding
node in aten IR, and when such validation fails numeric debugger falls back to edge IR as reference graph. This
flag allows one to override such behavior and make best effort comparison.

Reviewed By: Gasoonjia

Differential Revision: D81784685
kimishpatel added a commit to kimishpatel/executorch-1 that referenced this pull request Sep 10, 2025
Summary:

Often when aten graph has symbolic shape nodes, and inbuilt ops like gt/lt etc.,
during re-export of such a graph 'from_node' information is lost from node.meta. As a result we loose connection
between edge IR nodes and aten nodes for such ops. By default we validate that every edge IR node has corresponding
node in aten IR, and when such validation fails numeric debugger falls back to edge IR as reference graph. This
flag allows one to override such behavior and make best effort comparison.

Reviewed By: Gasoonjia

Differential Revision: D81784685
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81784685

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81784685

kimishpatel added a commit to kimishpatel/executorch-1 that referenced this pull request Sep 10, 2025
Summary:
Pull Request resolved: pytorch#14182

Often when aten graph has symbolic shape nodes, and inbuilt ops like gt/lt etc.,
during re-export of such a graph 'from_node' information is lost from node.meta. As a result we loose connection
between edge IR nodes and aten nodes for such ops. By default we validate that every edge IR node has corresponding
node in aten IR, and when such validation fails numeric debugger falls back to edge IR as reference graph. This
flag allows one to override such behavior and make best effort comparison.

Reviewed By: Gasoonjia

Differential Revision: D81784685
kimishpatel added a commit to kimishpatel/executorch-1 that referenced this pull request Sep 11, 2025
Summary:

Often when aten graph has symbolic shape nodes, and inbuilt ops like gt/lt etc.,
during re-export of such a graph 'from_node' information is lost from node.meta. As a result we loose connection
between edge IR nodes and aten nodes for such ops. By default we validate that every edge IR node has corresponding
node in aten IR, and when such validation fails numeric debugger falls back to edge IR as reference graph. This
flag allows one to override such behavior and make best effort comparison.

Reviewed By: Gasoonjia

Differential Revision: D81784685
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81784685

kimishpatel added a commit to kimishpatel/executorch-1 that referenced this pull request Sep 11, 2025
Summary:

Often when aten graph has symbolic shape nodes, and inbuilt ops like gt/lt etc.,
during re-export of such a graph 'from_node' information is lost from node.meta. As a result we loose connection
between edge IR nodes and aten nodes for such ops. By default we validate that every edge IR node has corresponding
node in aten IR, and when such validation fails numeric debugger falls back to edge IR as reference graph. This
flag allows one to override such behavior and make best effort comparison.

Reviewed By: Gasoonjia

Differential Revision: D81784685
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81784685

kimishpatel added a commit to kimishpatel/executorch-1 that referenced this pull request Sep 11, 2025
Summary:
Pull Request resolved: pytorch#14182

Often when aten graph has symbolic shape nodes, and inbuilt ops like gt/lt etc.,
during re-export of such a graph 'from_node' information is lost from node.meta. As a result we loose connection
between edge IR nodes and aten nodes for such ops. By default we validate that every edge IR node has corresponding
node in aten IR, and when such validation fails numeric debugger falls back to edge IR as reference graph. This
flag allows one to override such behavior and make best effort comparison.

Reviewed By: Gasoonjia

Differential Revision: D81784685
kimishpatel added a commit to kimishpatel/executorch-1 that referenced this pull request Sep 11, 2025
Summary:

Often when aten graph has symbolic shape nodes, and inbuilt ops like gt/lt etc.,
during re-export of such a graph 'from_node' information is lost from node.meta. As a result we loose connection
between edge IR nodes and aten nodes for such ops. By default we validate that every edge IR node has corresponding
node in aten IR, and when such validation fails numeric debugger falls back to edge IR as reference graph. This
flag allows one to override such behavior and make best effort comparison.

Reviewed By: Gasoonjia

Differential Revision: D81784685
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81784685

Summary:

Often when aten graph has symbolic shape nodes, and inbuilt ops like gt/lt etc.,
during re-export of such a graph 'from_node' information is lost from node.meta. As a result we loose connection
between edge IR nodes and aten nodes for such ops. By default we validate that every edge IR node has corresponding
node in aten IR, and when such validation fails numeric debugger falls back to edge IR as reference graph. This
flag allows one to override such behavior and make best effort comparison.

Reviewed By: Gasoonjia

Differential Revision: D81784685
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D81784685

@facebook-github-bot facebook-github-bot merged commit 378c700 into pytorch:main Sep 12, 2025
122 of 129 checks passed
swolchok added a commit that referenced this pull request Sep 12, 2025
This reverts commit 378c700 (#14182). It broke unittest / windows.


ghstack-source-id: 715d9ce
ghstack-comment-id: 3286690859
Pull-Request: #14281
StrycekSimon pushed a commit to nxp-upstream/executorch that referenced this pull request Sep 23, 2025
Differential Revision: D81784685

Pull Request resolved: pytorch#14182
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. fb-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants