Skip to main content

from_sigmoid

Function from_sigmoid 

Source
pub fn from_sigmoid(
    spec: &SigmoidSpec,
    names: &StageNames,
    shape: (usize, usize),
    target: &SpatialTarget,
) -> Result<SpatialProgram, SpatialReject>
Expand description

y = sigmoid(x) — 1/(1 + e^-x), the reciprocal of the silu denominator. No new SFPU kind: Exp and Recip already exist and the composition of the two IS the sigmoid.