AsContiguousArrayΒΆ
Return a contiguous array (ndim >= 1) in memory (C order).
Abstract Signature:
AsContiguousArray(a: Tensor, dtype: str)
PyTorch
API:
torch.as_tensorStrategy: Macro 'torch.as_tensor({a}, dtype={dtype}).contiguous()'