ascontiguous
- TensorInfo.ascontiguous()
Creates a
TensorInfoobject with updated memory layout information to contiguous for the tensor.This function generates a new
TensorInfoobject based on the currentTensorInfoobject, 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: