-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
[BUG] Torchscripting ViT results in AttributeError for Python 3.11 #1946
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
Comments
It's a known pytorch bug, don't have it handy but it's been reported in
their repo and slack before
…On Fri, Sep 8, 2023, 4:02 PM Naren Dasan ***@***.***> wrote:
Assigned #1946
<#1946> to
@rwightman <https://github.com/rwightman>.
—
Reply to this email directly, view it on GitHub
<#1946 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABLQICEKFOLD5RJ7VUO5BEDXZOPYLANCNFSM6AAAAAA4Q7UYV4>
.
You are receiving this because you were assigned.Message ID:
<huggingface/pytorch-image-models/issue/1946/issue_event/10322835101@
github.com>
|
More info: huggingface/pytorch-image-models#1946 Signed-off-by: Naren Dasan <[email protected]> Signed-off-by: Naren Dasan <[email protected]>
Thought there was an issue for this already but couldn't find it, did discuss it with pytorch devs at some point but I guess it got lost in the shuffle: pytorch/pytorch#108933 Problem with using enums + jit in python 3.11 (anythin < 3.11 is fine) |
@narendasan looks like a fix for this will squeek into 2.1 pytorch/pytorch#109807 |
I tested the latest PyTorch release candidate for 2.1 and the issue appears fixed |
Describe the bug
When using python 3.11, timm 0.9.7 and the latest version of PyTorch (2.0.1), the following error is thrown when trying to script ViT:
To Reproduce
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
conda list
, 1.7.0 py3.8_cuda11.0.221_cudnn8.0.3_0]: PyTorch 2.0.1-cu121Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: