torch.Tensor.bfloat16#
- Tensor.bfloat16(memory_format=torch.preserve_format) Tensor #
self.bfloat16()
等同于self.to(torch.bfloat16)
。请参阅to()
。- 参数
memory_format (
torch.memory_format
, optional) – 返回的 Tensor 的所需内存格式。默认值:torch.preserve_format
。
self.bfloat16()
等同于 self.to(torch.bfloat16)
。请参阅 to()
。
memory_format (torch.memory_format
, optional) – 返回的 Tensor 的所需内存格式。默认值:torch.preserve_format
。