Skip to content
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

ModuleNotFoundError: No module named 'torch.utils.serialization' #2

Open
singhkavinder opened this issue Aug 5, 2022 · 1 comment

Comments

@singhkavinder
Copy link

I am using pytorch version 0.4.1 and torchvision 0.2.0 on my device with cuda 9.2.

I ran code to generate results and it was working fine previously. Now, suddenly it is showing error: ModuleNotFoundError: No module named 'torch.utils.serialization'.

Traceback (most recent call last):
File "test.py", line 12, in
from models.test_model import TestModel
File "/home/ppp/Desktop/PYTORCH-LOW-LIGHT/CSDNet-CSDGAN-master/models/test_model.py", line 8, in
from . import networks as networks
File "/home/ppp/Desktop/PYTORCH-LOW-LIGHT/CSDNet-CSDGAN-master/models/networks.py", line 10, in
from torch.utils.serialization import load_lua
ModuleNotFoundError: No module named 'torch.utils.serialization'

@9bxlue
Copy link

9bxlue commented Dec 19, 2023

you can refer https://blog.csdn.net/weixin_54186372/article/details/115391432 to fit your code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants