Spec-Zone.ru › PyTorch 2

torch.Tensor.half

Tensor.half(memory_format=torch.preserve_format) → Tensor

self.half() эквивалентно self.to(torch.float16). См. to().

Параметры

memory_format (torch.memory_format, необязательно) – желаемый формат памяти возвращаемого тензора. По умолчанию: torch.preserve_format.

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

Spec-Zone.ru

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