快速鍵

torch.Tensor.where

Tensor.where(condition, y) Tensor

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

文件

取得 PyTorch 的完整開發者文件

檢視文件

教學

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

檢視教學

資源

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

檢視資源