Rate this Page
★★★★★
torch.Tensor.is_contiguous#
- Tensor.is_contiguous(memory_format=torch.contiguous_format)→bool#
Returns True if
selftensor is contiguous in memory in the order specifiedby memory format.- Parameters
memory_format (
torch.memory_format, optional) – Specifies memory allocationorder. Default:torch.contiguous_format.
On this page