Skip to main content

softplus

Function softplus 

Source
pub fn softplus<T>(x: T) -> T
where T: Float + FromPrimitive,
Expand description

Softplus function

Computes log(1 + exp(x)) in a numerically stable way.

§Arguments

  • x - Input value

§Returns

log(1 + exp(x))