-
Notifications
You must be signed in to change notification settings - Fork 25.8k
[dynamo] fix resume_execution.py KeyError in Python 3.11+ #162318
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
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/162318
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit e230fbc with merge base ef3be67 ( NEW FAILURE - The following job has failed:
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.
Should just need an assertion that value is not None to make mypy happy - otherwise LGTM. Thanks for updating the comment for the variable as well :)
Fixes #162313 cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela mlazos [ghstack-poisoned]
|
@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 |
|
@williamwen42 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Merge failedReason: 1 jobs have failed, first few of them are: trunk / macos-py3-arm64 / build Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge -i |
Merge startedYour change will be merged while ignoring the following 1 checks: trunk / macos-py3-arm64 / build Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
|
@pytorchbot cherry-pick --onto release/2.9 --fixes "#162313 - potential crash in Python 3.11+" -c critical |
Cherry picking #162318Command Details for Dev Infra teamRaised by workflow job |
…2318) Fixes pytorch#162313 Differential Revision: [D81938289](https://our.internmc.facebook.com/intern/diff/D81938289) Pull Request resolved: pytorch#162318 Approved by: https://github.com/Lucaskabela, https://github.com/mlazos, https://github.com/anijain2305
…2318) Fixes pytorch#162313 Differential Revision: [D81938289](https://our.internmc.facebook.com/intern/diff/D81938289) Pull Request resolved: pytorch#162318 Approved by: https://github.com/Lucaskabela, https://github.com/mlazos, https://github.com/anijain2305
…2318) Fixes pytorch#162313 Differential Revision: [D81938289](https://our.internmc.facebook.com/intern/diff/D81938289) Pull Request resolved: pytorch#162318 Approved by: https://github.com/Lucaskabela, https://github.com/mlazos, https://github.com/anijain2305
…2318) Fixes pytorch#162313 Differential Revision: [D81938289](https://our.internmc.facebook.com/intern/diff/D81938289) Pull Request resolved: pytorch#162318 Approved by: https://github.com/Lucaskabela, https://github.com/mlazos, https://github.com/anijain2305
The error I attempted to fix in #162318 was still appearing internally. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela [ghstack-poisoned]
Fixes #166176 The error I attempted to fix in #162318 was still appearing internally. Surprised that this wasn't caught anywhere 😰 cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela [ghstack-poisoned]
Fixes #166176 The error I attempted to fix in #162318 was still appearing internally. Surprised that this wasn't caught anywhere 😰 Pull Request resolved: #166040 Approved by: https://github.com/Lucaskabela ghstack dependencies: #166036
* [dynamo] fix store attr graph break in with block (#166036) Fixes #166033 Differential Revision: [D85198055](https://our.internmc.facebook.com/intern/diff/D85198055) Pull Request resolved: #166036 Approved by: https://github.com/Lucaskabela (cherry picked from commit ebb2b2e) * [dynamo] fix keyerror in resume_execution (again) (#166040) Fixes #166176 The error I attempted to fix in #162318 was still appearing internally. Surprised that this wasn't caught anywhere 😰 Pull Request resolved: #166040 Approved by: https://github.com/Lucaskabela ghstack dependencies: #166036 (cherry picked from commit 32fe4f6) * fix self.current_instruction -> cur_tx.current_instruction --------- Co-authored-by: William Wen <williamwen@meta.com>
Stack from ghstack (oldest at bottom):
Fixes #162313
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela @mlazos
Differential Revision: D81938289