Skip to main content

sigmoid

Function sigmoid 

Source
pub fn sigmoid(x: f32) -> f32
Expand description

1 / (1 + e^-x), the definition of the Sigmoid op: the same bits on every platform. Large negative x makes exp overflow to infinity and the result 0, without NaN.