oneflow.softplus¶
-
oneflow.
softplus
(x: Tensor, beta: double = 1, threshold: double = 20) → Tensor¶ Applies the element-wise function:
\[\text{Softplus}(x) = \frac{1}{\beta} * \log(1 + \exp(\beta * x))\]For numerical stability the implementation reverts to the linear function when \(input \times \beta > threshold\).
See
Softplus
for more details.