proc clone[T](t: Tensor[T]; layout: OrderType = rowMajor): Tensor[T] {.noinit.}
- A tensor
Returns:
- A full copy. The copy is recreated as a contiguous tensor. If the input was a slice, unused values are discarded.