def state_total
bendtorch-core@0.1.0.0 · src/autograd/gradient_PROOF.bend:145
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
145def state_total(-shape: Shape.Shape, state: Gradient.State<shape>) -> Core.Tensor<shape>:
146 Gradient.State{contribution, total} = state
147 total