Following the tutorial on https://github.com/spro/practical-pytorch/blob/master/seq2seq-translation/seq2seq-translation.ipynb 21, I’ve some trouble porting CPU Seq2Seq code to GPU
I’ve modified the code a little and try to put .cuda() to various places but it still throws a TypeError.
Details on https://stackoverflow.com/questions/46704352/porting-pytorch-code-from-cpu-to-gpu 13
Any help on how to resolve this? And when and how to use CUDA types/variables?