-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
AttributeError: module 'torch' has no attribute 'float32' #900
Comments
What command did you run/how was the error produced? |
Oh sorry, I forgot to write that! I have just edited my question. |
4.0.4 is not a pytorch version, do you mean 0.4.0 or 0.4.1 ? |
I meant 0.4.0, sorry about that. I tried to run with gpu as well, same error again. |
try to reinstall pytorch 0.4.0 |
I did, it gives the same error again. |
are you having the issue onmy with the translate command ? remove the replace_unk |
I tried removing it, again the same. I think you're right but I couldn't find how to fix it. |
Did you try in a clean install with anaconda ? |
closing, reopne if needed. |
i need it. same bug |
post your full config (pytorch, torchtext, python versions) and commandl ines |
torchtext is the offending …?module?..(not sure what to call it) that causes this error. The authors released torchtext 0.3.1 earlier today (2018-10-11). Installing the previous version restores full functionality: |
i got the same issue. |
Thanks! It solve my problem! |
I run the command
python translate.py -model averaged-10-epoch.pt -src data/test.txt -output pred.txt -replace_unk -verbose
I have pytorch 0.4.0 and torchtext 0.3.0 installed, but I am getting the following error:
The text was updated successfully, but these errors were encountered: