torch.Tensor.chalf¶ Tensor.chalf(memory_format=torch.preserve_format) → Tensor¶ self.chalf() 等价于 self.to(torch.complex32) 。参见 to() 。 参数: 返回张量的期望内存格式( torch.memory_format ,可选)- 默认: torch.preserve_format 。