捷徑

torch.Tensor.add

Tensor.add(other, *, alpha=1) Tensor

將純量或 tensor 加到 self tensor。 如果同時指定了 alphaother,則 other 的每個元素在被使用之前會先縮放 alpha

other 是一個 tensor 時,other 的形狀必須與底層 tensor 的形狀 可廣播

請參閱 torch.add()

文件

取得 PyTorch 的完整開發者文件

查看文件

教學

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

查看教學

資源

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

查看資源