Closed amjltc295 closed 5 years ago
When bidirectional is set to false, the hidden size of the decoder is set to be 1 and it causes RuntimeError: Expected hidden size (1, 16, 1), got (1, 16, 256)
RuntimeError: Expected hidden size (1, 16, 1), got (1, 16, 256)
Change it to hidden_size, the same as encoder
@pskrunner14 fixed it to the required format.
Why
When bidirectional is set to false, the hidden size of the decoder is set to be 1 and it causes
RuntimeError: Expected hidden size (1, 16, 1), got (1, 16, 256)
How
Change it to hidden_size, the same as encoder