is_contiguous

TensorInfo.is_contiguous()

Checks if the tensor data associated with the current TensorInfo has a contiguous memory layout.

Returns:

is_contiguous -- Returns true if the tensor has a contiguous memory layout.

Return type:

bool