Skip to content

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

@singhkavinder

Description

@singhkavinder

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions