Solved by Kushaj in post #2 
              
              
                Tensors are stored in memory as a single contiguous block of memory. It may be a straight line. Every tensor has two other components dimension and stride. Dim tells the size of the tensor in each dimension and stride tells the number of bytes you need to step in each dimension when traversing the a…