def Inv
bendtorch-core@0.1.0.0 · src/autograd/gradient_PROOF.bend:220
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_LAWS.bend as Laws
220def Inv(+shape: Shape.Shape, -original: Core.Tensor<shape>, -contribution: Core.Dynamic, +cursor: Nat, total: Core.Tensor<shape>) -> Type:
221 @+index: U32 -> @inside: Laws.Inside(shape, index) ->
222 {Core.checked_observe(shape, total, index) ==
223 partial(Nat.is_lt(U32.to_nat(index), cursor), Core.checked_observe(shape, original, index), Core.checked_observe_dynamic(contribution, index)) : Maybe<&2, F32>}