clcarwin/convert_torch_to_pytorch

Says no module named torch.legacy

parthi2929 opened this issue · 1 comments

Hi

When I try to use, I get this error:

$ python convert_torch.py -m resnext_101_64x4d.t7
Traceback (most recent call last):
  File "convert_torch.py", line 12, in <module>
    import torch.legacy.nn as lnn
ModuleNotFoundError: No module named 'torch.legacy'
(fastai)

My setup:
conda 4.5.11
Python 3.7.1

You have to use PyTorch 0.4.x.
torch.legacy was removed in PyTorch 1.x.