-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Make functorch compilable with Py-3.11 #85054
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/85054
Note: Links to docs will display an error until the docs builds have been completed. ❌ 3 FailuresAs of commit 4f11bd8: The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
7c33aee
to
8af29c9
Compare
@pytorchbot rebase |
@pytorchbot successfully started a rebase job. Check the current status here |
Successfully rebased |
8af29c9
to
9b1d3a1
Compare
83b5506
to
4881be8
Compare
Test failures look legit |
2c29774
to
cb8bcd5
Compare
Yeah, because wrappers/3.10+ code takes strong references, but current dims.cpp assumes they are weak ones. Modified description. |
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 good, thanks for fixing this!
cb8bcd5
to
4f11bd8
Compare
@pytorchbot merge -g |
@pytorchbot successfully started a merge job. Check the current status here. |
By using compatibility wrappers from [python_compat.h](https://github.com/pytorch/pytorch/blob/master/torch/csrc/utils/python_compat.h) and skipping part of `getname` switch Fixes #85006 Please note that `import torch` right now fails by default on 3.11 with some jit issue, so I think this shouldn't be a really issue for a bit Pull Request resolved: #85054 Approved by: https://github.com/kit1980, https://github.com/zdevito
By using compatibility wrappers from python_compat.h and skipping part of
getname
switchFixes #85006
Please note that
import torch
right now fails by default on 3.11 with some jit issue, so I think this shouldn't be a really issue for a bit