torch.Tensor.cdouble¶
- Tensor.cdouble(memory_format=torch.preserve_format) Tensor ¶
self.cdouble()
等价于self.to(torch.complex128)
。 参见to()
。- 参数
memory_format (
torch.memory_format
, optional) – 返回张量所需的内存格式。默认值:torch.preserve_format
。
self.cdouble()
等价于 self.to(torch.complex128)
。 参见 to()
。
memory_format (torch.memory_format
, optional) – 返回张量所需的内存格式。默认值: torch.preserve_format
。