def accumulated

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

import bendtorch-core@0.1.0.0/src/autograd/gradient_LAWS.bend as GradientLAWS
import Base
import bendtorch-core@0.1.0.0/src/autograd/gradient.bend as Gradient

82def accumulated(outcome: Gradient.Outcome) -> Bool:
83  match outcome:
84    case Gradient.Accumulated{after}:
85      True{}
86    case Gradient.Refused{after, returned, error}:
87      False{}

Uses (2)

Used by (7)