There are no graph nodes that require computing gradients
https://github.com/ShihanSu/sequence-pytorch
Shihan_su
what is datahp? what does the iterator return? I’m guessing that your problem is that you’re not casting the input and target data Variable type and therefore autograd can not compute the gradients… But again, I’m guessing! Didn’t spend too much time looking at your code.
miguelvr