torch.Tensor.chalf¶
- Tensor.chalf(memory_format=torch.preserve_format) Tensor ¶
self.chalf()
等同於self.to(torch.complex32)
。 請參閱to()
。- 參數
memory_format (
torch.memory_format
, optional) – 返回的張量所需的記憶體格式。預設值:torch.preserve_format
。
self.chalf()
等同於 self.to(torch.complex32)
。 請參閱 to()
。
memory_format (torch.memory_format
, optional) – 返回的張量所需的記憶體格式。預設值:torch.preserve_format
。