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))Softplus(x)=β1∗log(1+exp(β∗x))。 為了數值穩定性,當 input×β>thresholdinput \times \beta > thresholdinput×β>threshold 時,實現會退化為線性函式。 更多詳情請參見 Softplus。