| torch_clone {torch} | R Documentation | 
Clone
Description
Clone
Usage
torch_clone(self, memory_format = NULL)
Arguments
| self | (Tensor) the input tensor. | 
| memory_format | a torch memory format. see  | 
clone(input, *, memory_format=torch.preserve_format) -> Tensor
Returns a copy of input.
Note
This function is differentiable, so gradients will flow back from the
result of this operation to input. To create a tensor without an
autograd relationship to input see Tensor$detach.
[Package torch version 0.13.0 Index]