快捷方式

torch.Tensor.where

Tensor.where(condition, y) Tensor

self.where(condition, y) 等同於 torch.where(condition, self, y)。參見 torch.where()

文件

訪問 PyTorch 全面的開發者文件

檢視文件

教程

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

檢視教程

資源

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

檢視資源