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

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

The torch.Tensor.contiguous seems no use to me whenever I use it to the tensor or not, why?

1 Like

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

much thx! Mr. Peter Black

1 Like