-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[dynamo] Graph break on on user-defined class in compiled region #161670
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/161670
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 7b22c90 with merge base 86d34a4 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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 test (test_small_stability
, which was deleted) was already passing before this PR. I'm not sure why
test/test_fx.py
Outdated
print(x) | ||
|
||
|
||
@skipIfTorchDynamo("Not suitable for dynamo") |
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.
Some of these are failing during setup, but many define custom classes, so I think it's just easier to skip them all. If there's a desire to run these tests under dynamo, I can look at them more carefully
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.
Put these failures on test/dynamo_expected_failures
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.
Done. Note that two of the tests had to go in dynamo_skips
though (one was passing despite being expected to fail and the other was passing on python 3.10 but not 3.13)
@williamwen42, can you review this one? Rob implemented the @rtimpe, we need to make sure the CPython tests are actually being traced by Dynamo and not skipped. |
@rtimpe can you rebase this PR? You can do this with |
Currently, user-defined classes inside of a compiled frame will cause the whole frame to be skipped by dynamo. This change defers the Unsupported exception until the __build_class__ builtin is actually called, which allows a graph break to be inserted. Fixes #161562 ghstack-source-id: f18a913 Pull-Request: #161670
Currently, user-defined classes inside of a compiled frame will cause the whole frame to be skipped by dynamo. This change defers the Unsupported exception until the __build_class__ builtin is actually called, which allows a graph break to be inserted. Fixes #161562 ghstack-source-id: f18a913 Pull-Request: #161670
Currently, user-defined classes inside of a compiled frame will cause the whole frame to be skipped by dynamo. This change defers the Unsupported exception until the __build_class__ builtin is actually called, which allows a graph break to be inserted. Fixes #161562 ghstack-source-id: 95ad2ab Pull-Request: #161670
Currently, user-defined classes inside of a compiled frame will cause the whole frame to be skipped by dynamo. This change defers the Unsupported exception until the __build_class__ builtin is actually called, which allows a graph break to be inserted. ghstack-source-id: fa23eef Pull-Request: #161670
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…orch#161670) Currently, user-defined classes inside of a compiled frame will cause the whole frame to be skipped by dynamo. This change defers the Unsupported exception until the __build_class__ builtin is actually called, which allows a graph break to be inserted. Fixes pytorch#161562 Pull Request resolved: pytorch#161670 Approved by: https://github.com/williamwen42, https://github.com/guilhermeleobas
…ion (pytorch#161670)" This reverts commit 1463714. Reverted pytorch#161670 on behalf of https://github.com/jeanschmidt due to seems to have introduced https://github.com/pytorch/pytorch/actions/runs/17507127561/job/49733379267 and https://github.com/pytorch/pytorch/actions/runs/17507127561/job/49733379271 ([comment](pytorch#161670 (comment)))
…orch#161670) Currently, user-defined classes inside of a compiled frame will cause the whole frame to be skipped by dynamo. This change defers the Unsupported exception until the __build_class__ builtin is actually called, which allows a graph break to be inserted. Pull Request resolved: pytorch#161670 Approved by: https://github.com/williamwen42, https://github.com/guilhermeleobas
…ion (pytorch#161670)" This reverts commit e254548. Reverted pytorch#161670 on behalf of https://github.com/huydhn due to Sorry for reverting your change but it is failing a trunk test ([comment](pytorch#161670 (comment)))
…orch#161670) Currently, user-defined classes inside of a compiled frame will cause the whole frame to be skipped by dynamo. This change defers the Unsupported exception until the __build_class__ builtin is actually called, which allows a graph break to be inserted. Pull Request resolved: pytorch#161670 Approved by: https://github.com/williamwen42, https://github.com/guilhermeleobas
…orch#161670) Currently, user-defined classes inside of a compiled frame will cause the whole frame to be skipped by dynamo. This change defers the Unsupported exception until the __build_class__ builtin is actually called, which allows a graph break to be inserted. Fixes pytorch#161562 Pull Request resolved: pytorch#161670 Approved by: https://github.com/williamwen42, https://github.com/guilhermeleobas
…ion (pytorch#161670)" This reverts commit 1463714. Reverted pytorch#161670 on behalf of https://github.com/jeanschmidt due to seems to have introduced https://github.com/pytorch/pytorch/actions/runs/17507127561/job/49733379267 and https://github.com/pytorch/pytorch/actions/runs/17507127561/job/49733379271 ([comment](pytorch#161670 (comment)))
…orch#161670) Currently, user-defined classes inside of a compiled frame will cause the whole frame to be skipped by dynamo. This change defers the Unsupported exception until the __build_class__ builtin is actually called, which allows a graph break to be inserted. Pull Request resolved: pytorch#161670 Approved by: https://github.com/williamwen42, https://github.com/guilhermeleobas
…ion (pytorch#161670)" This reverts commit e254548. Reverted pytorch#161670 on behalf of https://github.com/huydhn due to Sorry for reverting your change but it is failing a trunk test ([comment](pytorch#161670 (comment)))
…orch#161670) Currently, user-defined classes inside of a compiled frame will cause the whole frame to be skipped by dynamo. This change defers the Unsupported exception until the __build_class__ builtin is actually called, which allows a graph break to be inserted. Pull Request resolved: pytorch#161670 Approved by: https://github.com/williamwen42, https://github.com/guilhermeleobas
…orch#161670) Currently, user-defined classes inside of a compiled frame will cause the whole frame to be skipped by dynamo. This change defers the Unsupported exception until the __build_class__ builtin is actually called, which allows a graph break to be inserted. Fixes pytorch#161562 Pull Request resolved: pytorch#161670 Approved by: https://github.com/williamwen42, https://github.com/guilhermeleobas
…ion (pytorch#161670)" This reverts commit 1463714. Reverted pytorch#161670 on behalf of https://github.com/jeanschmidt due to seems to have introduced https://github.com/pytorch/pytorch/actions/runs/17507127561/job/49733379267 and https://github.com/pytorch/pytorch/actions/runs/17507127561/job/49733379271 ([comment](pytorch#161670 (comment)))
…orch#161670) Currently, user-defined classes inside of a compiled frame will cause the whole frame to be skipped by dynamo. This change defers the Unsupported exception until the __build_class__ builtin is actually called, which allows a graph break to be inserted. Pull Request resolved: pytorch#161670 Approved by: https://github.com/williamwen42, https://github.com/guilhermeleobas
…ion (pytorch#161670)" This reverts commit e254548. Reverted pytorch#161670 on behalf of https://github.com/huydhn due to Sorry for reverting your change but it is failing a trunk test ([comment](pytorch#161670 (comment)))
…orch#161670) Currently, user-defined classes inside of a compiled frame will cause the whole frame to be skipped by dynamo. This change defers the Unsupported exception until the __build_class__ builtin is actually called, which allows a graph break to be inserted. Pull Request resolved: pytorch#161670 Approved by: https://github.com/williamwen42, https://github.com/guilhermeleobas
…orch#161670) Currently, user-defined classes inside of a compiled frame will cause the whole frame to be skipped by dynamo. This change defers the Unsupported exception until the __build_class__ builtin is actually called, which allows a graph break to be inserted. Fixes pytorch#161562 Pull Request resolved: pytorch#161670 Approved by: https://github.com/williamwen42, https://github.com/guilhermeleobas
…ion (pytorch#161670)" This reverts commit 1463714. Reverted pytorch#161670 on behalf of https://github.com/jeanschmidt due to seems to have introduced https://github.com/pytorch/pytorch/actions/runs/17507127561/job/49733379267 and https://github.com/pytorch/pytorch/actions/runs/17507127561/job/49733379271 ([comment](pytorch#161670 (comment)))
…orch#161670) Currently, user-defined classes inside of a compiled frame will cause the whole frame to be skipped by dynamo. This change defers the Unsupported exception until the __build_class__ builtin is actually called, which allows a graph break to be inserted. Pull Request resolved: pytorch#161670 Approved by: https://github.com/williamwen42, https://github.com/guilhermeleobas
…ion (pytorch#161670)" This reverts commit e254548. Reverted pytorch#161670 on behalf of https://github.com/huydhn due to Sorry for reverting your change but it is failing a trunk test ([comment](pytorch#161670 (comment)))
…orch#161670) Currently, user-defined classes inside of a compiled frame will cause the whole frame to be skipped by dynamo. This change defers the Unsupported exception until the __build_class__ builtin is actually called, which allows a graph break to be inserted. Pull Request resolved: pytorch#161670 Approved by: https://github.com/williamwen42, https://github.com/guilhermeleobas
Stack from ghstack (oldest at bottom):
Currently, user-defined classes inside of a compiled frame will cause the whole
frame to be skipped by dynamo. This change defers the Unsupported exception
until the build_class builtin is actually called, which allows a graph break
to be inserted.
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela