Solved by albanD in post #4 
              
              
                Hi, 
The thing is that view is not transposition. It just looks at data differently. When you do .view(4, batch_size, ...), then the data from different samples in your batch are mixed (which most certainly confuses the learning a lot): 
>>> import torch
>>> batch_size = 3
>>> seq_len = 2
>>> inp = …