def deliver

bendtorch-core@0.1.0.0 · src/autograd/backward.bend:122

import bendtorch-core@0.1.0.0/src/autograd/backward.bend as Backward
import Base

122def deliver(contributions: List<&2, Contribution>, +count: Nat, slots: List<&2, Maybe<&2, F32>>) -> List<&2, Maybe<&2, F32>>:
123  match contributions:
124    case Nil{}:
125      slots
126    case Con{Contribution{+target, +value}, rest}:
127      deliver(rest, count, bump(slots, count, target, value))

Uses (6)

Used by (3)