pub fn sigmoid(x: f32) -> f32
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.
1 / (1 + e^-x)
Sigmoid
x
exp