Hi,
I’ve tried taking the code from https://github.com/spro/practical-pytorch/blob/master/seq2seq-translation/seq2seq-translation.ipynb 15
and making it work on the GPU, converted the models + variable initializations to .cuda().
Unfortunately getting the following behavior:
  File "/home/jd/pytorch/examples/translation/translate_gpu.py", line 296, in trainEpochs
    loss = train(input_variable, target_variable, encoder, decoder, encoder_optimizer, decoder_optimizer, criterion)

  File "/home/jd/pytorch/examples/translation/translate_gpu.py", line 247, in train
    loss.backward()

  File "/home/jd/anaconda/lib/python2.7/site-packages/torch/autograd/variable.py", line 158, in backward
    self._execution_engine.run_backward((self,), (gradient,), retain_variables)

RuntimeError: could not compute gradients for some functions (CudnnRNN)

It works on the CPU. Any hints as to what might be causing this behavior? The RuntimeError sadly doesn’t mention which operations couldn’t get the gradient computed. Is there a list of supported/unsupported ops I could reference somewhere?
Code + data can be found here: https://github.com/ponythewhite/pytorch_fun 6
Thanks,
–
Jacek