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