-
Notifications
You must be signed in to change notification settings - Fork 26.4k
[Dynamo] Fix str(Guard.obj_weakref) bug to re-ennable support overriding __getattr__ #88564
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/88564
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 FailuresAs of commit d56e79d: This comment was automatically generated by Dr. CI and updates every 15 minutes. |
| @staticmethod | ||
| def weakref_to_str(obj_weakref): | ||
| """ | ||
| This is a workaround of a Python weakref bug. |
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.
Opened python/cpython#99184 to track this bug at cpython.
|
cpython devs disagree with the assessment that it's a cpython bug, wdyt? Why are we printing weakrefs in the first place? |
I responded on that thread.
I think this is info and debug purpose.
Update: cpython fix is ready - python/cpython#99244. |
ezyang
left a comment
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.
link the weakref bug and happy to accept
|
@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 |
Merge failedReason: This PR is too stale; the last push date was more than 3 days ago. Please rebase and try again. You can rebase by leaving the following comment on this PR: Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge -f "irrelevant MacOS errors" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…ing __getattr__ (pytorch#88564) See my inline comments! Pull Request resolved: pytorch#88564 Approved by: https://github.com/ezyang, https://github.com/anijain2305
See my inline comments!
cc @mlazos @soumith @voznesenskym @penguinwu @anijain2305 @EikanWang @jgong5 @Guobing-Chen @chunyuan-w @XiaobingSuper @zhuhaozhe @blzheng @Xia-Weiwen @wenzhe-nrv @jiayisunx @desertfire