pytorch / 2 / generated / torch.tensor.clone.html

torch.Tensor.clone

Tensor.clone(*, memory_format=torch.preserve_format) → Tensor

See torch.clone()

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