law gradient_held

bendtorch-core@0.1.0.0 · src/autograd/gradient_LAWS.bend:115

import bendtorch-core@0.1.0.0/src/autograd/gradient_LAWS.bend as GradientLAWS
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

115# A slot that holds a gradient reads as that gradient.
116law gradient_held:
117  for +shape: Shape.Shape
118  for held: Core.Dynamic
119  {Gradient.gradient(shape, Gradient.Held{held}) == Done{held} : Result<&2, &1, Core.Error, Core.Dynamic>}

Uses (6)

Used by (0)

No other definition uses this definition.