enerzyme.models.functional.softplus_inverse#

enerzyme.models.functional.softplus_inverse(x: Tensor | ndarray) Tensor[source]#

Inverse of the softplus function. This is useful for initialization of parameters that are constrained to be positive (via softplus).

The indirect implementation is for numerical stability.