快捷方式

torch.Tensor.view_as

Tensor.view_as(other) Tensor

將此 tensor 檢視為與 other 大小相同。self.view_as(other) 等效於 self.view(other.size())

請參閱 view() 獲取更多關於 view 的資訊。

引數

other (torch.Tensor) – 結果 tensor 的大小與 other 相同。

文件

訪問 PyTorch 的全面開發者文件

檢視文件

教程

獲取針對初學者和高階開發者的深入教程

檢視教程

資源

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

檢視資源