快捷方式

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

文件

查閱 PyTorch 全面的開發者文件

檢視文件

教程

獲取面向初學者和高階開發者的深度教程

檢視教程

資源

查詢開發資源並獲取問題解答

檢視資源