def agreed
import bendtorch-core@0.1.0.0/src/autograd/gradient.bend as Gradientimport 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)