def leaf_add

bendtorch-core@0.1.0.0 · src/autograd/reduce.bend:31

import bendtorch-core@0.1.0.0/src/autograd/reduce.bend as Reduce
import Base

31def leaf_add(accumulator: F32, pair: Array<F32> & F32) -> F32 & Array<F32>:
32  (kept, word) = pair
33  (F32.add(accumulator, word), kept)

Uses (5)

Used by (10)