It looks like your tensor should be the right size from your initHidden method. Are you generating it from some other way?
You might find this discussion valuable - How to properly use hidden states for RNN
It looks like your tensor should be the right size from your initHidden method. Are you generating it from some other way?
You might find this discussion valuable - How to properly use hidden states for RNN