Solved by ptrblck in post #2 
              
              
                reshape tries to return a view if possible, otherwise copies to data to a contiguous tensor and returns the view on it. From the docs: 

Returns a tensor with the same data and number of elements as input , but with the specified shape. When possible, the returned tensor will be a view of input . Ot…