Solved by Crohn_eng in post #2 
              
              
                Hey @scarecrow21, 

The target size should be different from the input size. Because a sequence of 10 inputs give out 1 output. So, target size = (torch.Size([5, 1, 1])) should be different from input size = (torch.Size([5, 10, 1])). 

I think the “input” the error you are reporting is referring to …