快捷方式

torch.Tensor.char

Tensor.char(memory_format=torch.preserve_format) Tensor

self.char() 相當於 self.to(torch.int8)。 請參閱 to()

參數

memory_format (torch.memory_format, optional) – 傳回 Tensor 的所需記憶體格式。預設值:torch.preserve_format

文件

存取 PyTorch 的完整開發者文件

檢視文件

教學

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

檢視教學

資源

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

檢視資源