-
Notifications
You must be signed in to change notification settings - Fork 7k
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
Update usages of torch.library APIs #8384
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/vision/8384
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New FailuresAs of commit 4520bd4 with merge base e1f1fbe (): NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
We deprecated impl_abstract. This PR replaces it with the new API (register_fake). register_fake also (sometimes) requires a `set_python_module` in C++, so I add that as well. Test Plan: - existing tests
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.
Thank you @zou3519 !
Reviewed By: vmoens Differential Revision: D58283859 fbshipit-source-id: e882d7dbc22ec3e04edea50f95b6a30456f8fd2b Co-authored-by: Nicolas Hug <[email protected]> Co-authored-by: Nicolas Hug <[email protected]>
This reverts commit a471305.
This reverts commit fbefdcc.
hello,when i install vision by source code,i got this error: /home/gai_test/wuyang/vision/torchvision/csrc/ops/nms.cpp:22:5: error: ‘class torch::Library’ has no member named ‘set_python_module’
22 | m.set_python_module("torchvision._meta_registrations");
| ^~~~~~~~~~~~~~~~~
error: command '/usr/bin/gcc' failed with exit code 1 is there any solutions? |
It seems like the versions are not matching. You can check the corresponding versions of Torch and TorchVision on the official website, and then switch TorchVision’s source code to the appropriate version. |
I got the same problem, while I'm using torch==2.4.0 torchvision==0.19.0 on jetson(arch). They are matched.But I got error: |
We deprecated impl_abstract. This PR replaces it with the new API (register_fake). register_fake also (sometimes) requires a
set_python_module
in C++, so I add that as well.Test Plan: