Fork me on GitHub
Arraymancer Technical reference Tutorial Spellbook (How-To's) Under the hood

Module sigmoid

Types

SigmoidActivation[TT] = ref object of Gate[TT]
  cache: TT
  Source Edit

Procs

proc sigmoid[TT](a: Variable[TT]): Variable[TT]
Input:
  • A variable
  Source Edit

Methods

method forward[TT](self: SigmoidActivation[TT]; a: Variable[TT]): Variable[TT] {.
inline, locks: 0
.}
  Source Edit
method backward[TT](self: SigmoidActivation[TT]; gradient: TT): SmallDiffs[TT] {.
noInit, inline, locks: 0
.}
  Source Edit