View source: R/gen-namespace.R
torch_clone | R Documentation |
Clone
torch_clone(self, memory_format = NULL)
self |
(Tensor) the input tensor. |
memory_format |
a torch memory format. see |
Returns a copy of input
.
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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.