-
Notifications
You must be signed in to change notification settings - Fork 26.3k
[dynamo][guards] Prevent framelocals to dict conversion for not required LAMBDA_GUARD #162509
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
…red LAMBDA_GUARD [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/162509
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 New Failures, 2 Unrelated FailuresAs of commit 4ba3f10 with merge base 1c16c18 ( NEW FAILURES - The following jobs have failed:
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. |
…r not required LAMBDA_GUARD" This is a smaller PR to reduce framelocals to dict conversion. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela [ghstack-poisoned]
…r not required LAMBDA_GUARD" This is a smaller PR to reduce framelocals to dict conversion. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela [ghstack-poisoned]
…r not required LAMBDA_GUARD" This is a smaller PR to reduce framelocals to dict conversion. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela [ghstack-poisoned]
| py::object verbose_code_parts) | ||
| : LAMBDA_GUARD(root_guard_manager, guard_check_fn, verbose_code_parts) {} | ||
|
|
||
| bool check_nopybind(PyObject* value) override { // borrowed ref |
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.
How are we reaching here if the guard check always goes through
pytorch/torch/csrc/dynamo/guards.cpp
Line 6526 in e4174b1
| return ((RootGuardManager*)root)->check_nopybind(f_locals); |
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.
I think this can happen in debug verbose mode, where we run guards during compilation for validation
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.
Oh this guard is for a leaf guard. Like from_numpy, for which the the value is already accessed through a series of guard accessors.
…r not required LAMBDA_GUARD" This is a smaller PR to reduce framelocals to dict conversion. cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx chenyang78 kadeng chauhang amjames Lucaskabela [ghstack-poisoned]
|
Starting merge as part of PR stack under #162525 |
…GUARD (#162525) Pull Request resolved: #162525 Approved by: https://github.com/williamwen42 ghstack dependencies: #162509
…red LAMBDA_GUARD (pytorch#162509) This is a smaller PR to reduce framelocals to dict conversion. Pull Request resolved: pytorch#162509 Approved by: https://github.com/williamwen42
…GUARD (pytorch#162525) Pull Request resolved: pytorch#162525 Approved by: https://github.com/williamwen42 ghstack dependencies: pytorch#162509
|
@pytorchbot revert -m "Reverting because fburl.com/workplace/qiitdlp6 is prompting us to think about an alternate implementation" -c nosignal |
|
@pytorchbot successfully started a revert job. Check the current status here. |
Reverting PR 162509 failedReason: Command Details for Dev Infra teamRaised by workflow job |
…red LAMBDA_GUARD (pytorch#162509) This is a smaller PR to reduce framelocals to dict conversion. Pull Request resolved: pytorch#162509 Approved by: https://github.com/williamwen42
…GUARD (pytorch#162525) Pull Request resolved: pytorch#162525 Approved by: https://github.com/williamwen42 ghstack dependencies: pytorch#162509
…red LAMBDA_GUARD (pytorch#162509) This is a smaller PR to reduce framelocals to dict conversion. Pull Request resolved: pytorch#162509 Approved by: https://github.com/williamwen42
…GUARD (pytorch#162525) Pull Request resolved: pytorch#162525 Approved by: https://github.com/williamwen42 ghstack dependencies: pytorch#162509
…red LAMBDA_GUARD (pytorch#162509) This is a smaller PR to reduce framelocals to dict conversion. Pull Request resolved: pytorch#162509 Approved by: https://github.com/williamwen42
…GUARD (pytorch#162525) Pull Request resolved: pytorch#162525 Approved by: https://github.com/williamwen42 ghstack dependencies: pytorch#162509
Stack from ghstack (oldest at bottom):
This is a smaller PR to reduce framelocals to dict conversion.
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames @Lucaskabela