pub fn deep_clone(t: &Tensor) -> Tensor
Expand description
Return a clone of this tensor. The semantics of clone are like
torch.clone
: it will copy the the underlying tensor storage.
ยงSafety
This function is guaranteed to produce a fresh (non-aliasing) tensor.