hunkim / PyTorchZeroToAll

Simple PyTorch Tutorials Zero to ALL!
http://bit.ly/PyTorchZeroAll
3.9k stars 1.2k forks source link

Error message on dim #21

Open zaimawang opened 6 years ago

zaimawang commented 6 years ago

RuntimeError Traceback (most recent call last)

in () 25 26 # The given dimensions dim0 and dim1 are swapped. ---> 27 inputs = inputs.transpose(3, dim1=1, dim2=2) 28 # Propagate input through RNN 29 # Input: (seq_len, batch_size, input_size) when batch_first=False (default) RuntimeError: transpose() got an unexpected keyword argument 'dim2'