niteshade.utils.copy

niteshade.utils.copy(array_like)

Used to copy a torch.Tensor or np.ndarray object.

Parameters

array_like (np.ndarray, torch.Tensor) – array/tensor to copy.