def agreed

bendtorch-core@0.1.0.0 · src/autograd/gradient.bend:106

import bendtorch-core@0.1.0.0/src/autograd/gradient.bend as Gradient
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/core.bend as Core

106def agreed(+shape: Shape.Shape, slot: Slot, contribution: Core.Dynamic) -> Outcome:
107  match slot:
108    case Unset{}:
109      Accumulated{Held{contribution}}
110    case Held{gradient}:
111      held(shape, contribution, gradient)

Uses (5)

Used by (4)