Learn R Programming

torch (version 0.8.1)

torch_clone: Clone

Description

Clone

Usage

torch_clone(self, memory_format = NULL)

Arguments

self

(Tensor) the input tensor.

memory_format

a torch memory format. see torch_preserve_format().

clone(input, *, memory_format=torch.preserve_format) -> Tensor

Returns a copy of input.