Softplus
Applies element-wise, the function .
nnf_softplus(input, beta = 1, threshold = 20)
input
: (N,*) tensor, where * means, any number of additional dimensionsbeta
: the beta value for the Softplus formulation. Default: 1threshold
: values above this revert to a linear function. Default: 20For numerical stability the implementation reverts to the linear function when .
Useful links