快捷方式

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

文件

取得 PyTorch 的完整開發者文件

檢視文件

教學

取得初學者和進階開發者的深入教學

檢視教學

資源

尋找開發資源並取得問題解答

查看資源