[dynamo][guards] Prevent framelocals to dict conversion for not required LAMBDA_GUARD#162509
[dynamo][guards] Prevent framelocals to dict conversion for not required LAMBDA_GUARD#162509anijain2305 wants to merge 5 commits intogh/anijain2305/867/basefrom
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.
How are we reaching here if the guard check always goes through
pytorch/torch/csrc/dynamo/guards.cpp
Line 6526 in e4174b1
There was a problem hiding this comment.
I think this can happen in debug verbose mode, where we run guards during compilation for validation
There was a problem hiding this comment.
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