torch.Tensor.double
-
Tensor.double(memory_format=torch.preserve_format) → Tensor -
self.double()эквивалентноself.to(torch.float64). См.to().- Параметры:
-
memory_format (
torch.memory_format, необязательно) – требуемый формат памяти возвращаемого тензора. По умолчанию:torch.preserve_format.
© 2026, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.14/generated/torch.Tensor.double.html