Open rsteca opened 5 years ago
Me too.
Me tooo
Yes, the same problem. Has this been tested with cuda?
Further to this problem there is an easy fix. Just add/change the following 3 lines in modules.py. Starting from the bottom so that the line numbers I show don't change.
Change line 59 to: return input_weighted, input_encoded.to(device) # Fixed CUDA bug #
Change line 11 to: return Variable(torch.zeros(1, x.size(0), hidden_size).to(device)) # Fixed CUDA bug #
Add after line 4: from constants import device # Fixed CUDA bug BF 20190710 #
Thats it!
I get this error when trying to use the code with GPU (it works fine with CPU):