def continue_step

bendtorch-core@0.1.0.0 · src/autograd/gradient.bend:66

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

66def continue_step(+shape: Shape.Shape, rec: State<shape> -> Outcome, result: Step<shape>) -> Outcome:
67  match result:
68    case Stop{contribution, total, error}:
69      Refused{Held{Core.Packed{shape, total}}, contribution, TensorError{error}}
70    case Continue{state}:
71      rec(state)

Uses (7)

Used by (3)