def LoopInv

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

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

240def LoopInv(+shape: Shape.Shape, -original: Core.Tensor<shape>, -contribution: Core.Dynamic, +limit: Nat, outcome: Gradient.Outcome) -> Type:
241  match outcome:
242    case Gradient.Refused{after, returned, error}:
243      Unit
244    case Gradient.Accumulated{after}:
245      Dims(shape, after) & Values(shape, original, contribution, limit, after)

Uses (9)

Used by (6)