What is the difference between a tensor with Tensor.contiguous and not

contiguous is a member function, which makes the tensor contiguous again or a no-op if your tensor is already stored contiguously.
Have a look at this post for a small example and explanation.

1 Like