快速鍵

torch.Tensor.view_as

Tensor.view_as(other) Tensor

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

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

參數

other (torch.Tensor) – 結果張量具有與 other 相同的大小。

文件

取得 PyTorch 的完整開發者文件

檢視文件

教學

取得適合初學者和高級開發者的深入教學

檢視教學

資源

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

檢視資源