def state_contribution
bendtorch-core@0.1.0.0 · src/autograd/gradient_PROOF.bend:141
import bendtorch-core@0.1.0.0/src/autograd/gradient_PROOF.bend as GradientPROOF
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
import bendtorch-core@0.1.0.0/src/autograd/gradient.bend as Gradient
141def state_contribution(-shape: Shape.Shape, state: Gradient.State<shape>) -> Core.Dynamic:
142 Gradient.State{contribution, total} = state
143 contribution