Closed 0xooo2A closed 5 years ago
I suspect these errors are due to changes to automatic type casting in newer versions of pytorch. I just pushed an update that should fix this.
I suspect these errors are due to changes to automatic type casting in newer versions of pytorch. I just pushed an update that should fix this.
I'm using Pytorch 1.0.1, and your fix works for me. Many tanks!
I got a type error when I run this project on CPU with commond:
python .\eval_similarity.py .\model\ssa_L1_100d_lstm3x512_lm_i512_mb64_tau0.5_lambda0.1_p0.05_epoch100.sav
Trace back detail shows as followings:
I also tried eval_secstr.py, got a similar issue:
python .\eval_secstr.py .\model\ssa_L1_100d_lstm3x512_lm_i512_mb64_tau0.5_lambda0.1_p0.05_epoch100.sav
Runtime: Windows 10, Python 3.