R/gen-namespace-docs.R
R/gen-namespace-examples.R
R/gen-namespace.R
torch_clone.Rd
Clone
torch_clone(self, memory_format = NULL)
(Tensor) the input tensor.
a torch memory format. see torch_preserve_format().
torch_preserve_format()
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.
input
Tensor$detach
Returns a copy of input.