torch.Tensor.bfloat16
-
Tensor.bfloat16(memory_format=torch.preserve_format) → Tensor -
self.bfloat16()эквивалентноself.to(torch.bfloat16). См.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.bfloat16.html