pub fn softplus<T>(x: T) -> Twhere T: Float + FromPrimitive,
Softplus function
Computes log(1 + exp(x)) in a numerically stable way.
x
log(1 + exp(x))