spd_learn.functional.softplus#
- spd_learn.functional.softplus(s)[source]#
Scaled SoftPlus function. It is scaled so that: f(0) = 1, f(x) -> 0 as x -> -inf and f’(x) -> 1 as x -> +inf
- Parameters:
s (torch.Tensor) – Scalar or array of scalars.
- Returns:
SoftPlus of s
- Return type: