Solved by albanD in post #2 
              
              
                Hi, 
I think your reshape is wrong: 
In [10]: a = torch.zeros(3, 1)

In [11]: b = torch.ones(3, 1)

In [12]: c = torch.stack([a, b])

In [13]: c.view(3, 2, 1)
Out[13]:
tensor([[[0.],
         [0.]],

        [[0.],
         [1.]],

        [[1.],
         [1.]]])

You can see that you mixup the batc…