Closed KJ-Lin closed 6 years ago
thanks, the error message: TypeError: indexing a tensor with an object of type torch.LongTensor. The only supported types are integers, slices, numpy scalars and torch.LongTensor or torch.ByteTensor as the only argument.
Thank you. I just tried again and it is running on my system.
Did you change anything in the code?
How did you train the model?
Also, could you print hidden
and running_seqs
before the error happens?
Thanks very much. The problem, which is the wrong of the version, has been dealt.
So the error with the hidden update was also resolved by this?
The PyTorch version is
0.3.1
.For you problem with
hidden = hidden[:,running_seqs]
, could you please provide the error message?