-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Allow setting attribute to NestedUserFunctionVariable #146505
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
Allow setting attribute to NestedUserFunctionVariable #146505
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/146505
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 1ab12fb with merge base 0dcd482 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
torch/_dynamo/variables/functions.py
Outdated
name_var: VariableTracker, | ||
val: VariableTracker, | ||
): | ||
self.setattr_values[name_var] = val |
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.
You will also have to update var_getattr
and look for self.setattr_values
.
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.
looks fine, is there a test that we can write?
Starting merge as part of PR stack under #148765 |
1 similar comment
Starting merge as part of PR stack under #148765 |
Pull Request resolved: #148765 Approved by: https://github.com/zou3519 ghstack dependencies: #146505
Pull Request resolved: pytorch#146505 Approved by: https://github.com/zou3519
…ch#148765) Pull Request resolved: pytorch#148765 Approved by: https://github.com/zou3519 ghstack dependencies: pytorch#146505
Stack from ghstack (oldest at bottom):
contextlib.suppress
#147990raise ... from ...
#148766StopIteration
#148765cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @chenyang78 @kadeng @chauhang @amjames