ModuleNotFoundError: No module named ‘torch.utils.serialization‘解决

安装:torchfile

(1)安装torchfile

	pip install torchfile
(2)将from torch.utils.serialization import load_lua改为import torchfile

(3)将load_lua改为torchfile.load

你可能感兴趣的:(pytorch,python)