You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from torchvision.datasets import mnist
File "/usr/local/lib/python3.10/site-packages/torchvision/__init__.py", line 6, in <module>
from torchvision import _meta_registrations, datasets, io, models, ops, transforms, utils
File "/usr/local/lib/python3.10/site-packages/torchvision/models/__init__.py", line 2, in <module>
from .convnext import *
File "/usr/local/lib/python3.10/site-packages/torchvision/models/convnext.py", line 8, in <module>
from ..ops.misc import Conv2dNormActivation, Permute
File "/usr/local/lib/python3.10/site-packages/torchvision/ops/__init__.py", line 23, in <module>
from .poolers import MultiScaleRoIAlign
File "/usr/local/lib/python3.10/site-packages/torchvision/ops/poolers.py", line 10, in <module>
from .roi_align import roi_align
File "/usr/local/lib/python3.10/site-packages/torchvision/ops/roi_align.py", line 4, in <module>
import torch._dynamo
ModuleNotFoundError: No module named 'torch._dynamo'
This change which was released in 0.16 used _dynamo. _dynamo is part of the change which only released from PT 2.0.
Versions
torchvision=0.16
torch=1.13.1
The text was updated successfully, but these errors were encountered:
Thanks for the report @ningziwen . That is expected, from our dependency table, you will either want to install pytorch 2.1 to use torchvision 0.16, or install torchvision 0.14 to install pytorch 1.13.
🐛 Describe the bug
Sample code
Error:
This change which was released in 0.16 used _dynamo. _dynamo is part of the change which only released from PT 2.0.
Versions
torchvision=0.16
torch=1.13.1
The text was updated successfully, but these errors were encountered: