Spec-Zone.ru › PyTorch 1

torch.clone

torch.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 detach().

Parameters:

input (Tensor) – the input tensor.

Keyword Arguments:

memory_format (torch.memory_format, optional) – the desired memory format of returned tensor. Default: torch.preserve_format.

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/1.13/generated/torch.clone.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API