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

Says no module named torch.legacy #42

Open
parthi2929 opened this issue Dec 21, 2018 · 1 comment
Open

Says no module named torch.legacy #42

parthi2929 opened this issue Dec 21, 2018 · 1 comment

Comments

@parthi2929
Copy link

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

@alexandru-dinu
Copy link

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

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