when i want to train an EncoderRNN i get this error
Expected hidden size (2, 1, 300), got [1, 1, 300]
my code :
when i set hidden = zeros(2,1,300) i get this error
RuntimeError: For unbatched 2-D input, hx should also be 2-D but got 3-D tensor
when i want to train an EncoderRNN i get this error
Expected hidden size (2, 1, 300), got [1, 1, 300]
RuntimeError: For unbatched 2-D input, hx should also be 2-D but got 3-D tensor