Source/Packages

Component.SigmoidWeightedGate

packages/components/src/Component/SigmoidWeightedGate.alpha

181 lines14 declarations6.6 KiBSHA-256 7302f612c9f7

def · lines 58–74

propagateSigmoidWeightedGateWith

Full file
58def propagateSigmoidWeightedGateWith =
59  (lambda unrestricted operations : Float32Operations .
60    unrestricted x : Nat .
61    unrestricted upstream : Nat .
62    let unrestricted sigmoid =
63      (sigmoidFromExp2With operations x)
64      in
65      let unrestricted complement =
66        (f32Add operations sigmoidWeightedGateOne (f32Negate operations sigmoid))
67        in
68        let unrestricted slope =
69          (f32Multiply
70            operations
71            sigmoid
72            (f32Add operations sigmoidWeightedGateOne (f32Multiply operations x complement)))
73          in
74          f32Multiply operations upstream slope)

The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.