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?
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?
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.
much thx! Mr. Peter Black