ascontiguous

TensorInfo.ascontiguous()

Creates a TensorInfo object with updated memory layout information to contiguous for the tensor.

This function generates a new TensorInfo object based on the current TensorInfo object, updating the memory layout information to indicate that the tensor is stored contiguously without strides. This is typically used for tensor stored on host.

Returns:

tensor_info -- Returns a new TensorInfo object with updated memory layout information set to contiguous.

Return type:

TensorInfo