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