torch.Tensor.cfloat¶
- Tensor.cfloat(memory_format=torch.preserve_format) Tensor¶
self.cfloat()等價於self.to(torch.complex64)。參見to()。- 引數
memory_format (
torch.memory_format, 可選) – 返回 Tensor 所需的記憶體格式。預設值:torch.preserve_format。
self.cfloat() 等價於 self.to(torch.complex64)。參見 to()。
memory_format (torch.memory_format, 可選) – 返回 Tensor 所需的記憶體格式。預設值: torch.preserve_format。