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

Module gates_basic

Types

AddGate[TT] = ref object of Gate[TT]
  ab_shape: MetadataArray
  Source Edit

Procs

proc `+`[TT](a, b: Variable[TT]): Variable[TT]
  Source Edit

Methods

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