快速鍵

torch.nn.functional.softplus

torch.nn.functional.softplus(input, beta=1, threshold=20) Tensor

逐元素地套用函數 Softplus(x)=1βlog(1+exp(βx))\text{Softplus}(x) = \frac{1}{\beta} * \log(1 + \exp(\beta * x))

為了數值穩定性,當 input×β>thresholdinput \times \beta > threshold 時,實作會回歸到線性函數。

請參閱 Softplus 以取得更多詳細資訊。

文件

存取 PyTorch 的完整開發者文件

檢視文件

教學

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

檢視教學

資源

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

檢視資源