def partial

bendtorch-core@0.1.0.0 · src/autograd/gradient_PROOF.bend:213

import bendtorch-core@0.1.0.0/src/autograd/gradient_PROOF.bend as GradientPROOF
import Base
import bendtorch-core@0.1.0.0/src/autograd/gradient_LAWS.bend as Laws

213def partial(+below: Bool, total: Maybe<&2, F32>, contribution: Maybe<&2, F32>) -> Maybe<&2, F32>:
214  match below:
215    case True{}:
216      Laws.add_word(total, contribution)
217    case False{}:
218      total

Uses (4)

Used by (8)