Solved by iacob in post #11 
              
              
                What is view()? 
view() takes a tensor and reshapes it. A requirement being that the product of the lengths of each dimension in the new shape equals that of the original. Hence a tensor with shape (4,3) can be reshaped with view to one of shape: 

(1,12), (2,6), (3,4), (6,2), (12,1)

but also, any …