-
Notifications
You must be signed in to change notification settings - Fork 140
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
0% accuracy with pytorch >= 0.4.0 #10
Comments
It is caused by the 'dtype' of 'acc' . because acc.dtype = int64. In 'eval_src' and 'eval_tgt' function, the line: |
AttributeError: 'int' object has no attribute 'float' |
set acc=0.0 and it will be work |
rewrite acc=0 as acc=0. and it will work |
Downgrading to (py)torch==0.3.1 (required re-processing data) fixed issue. This issue is mainly to help other people who run into the same problem.
Here are my results with torch 0.3.1 and torchvision 0.2.0:
The text was updated successfully, but these errors were encountered: