def step_observe

bendtorch-core@0.1.0.0 · src/tensor/elementwise.bend:520

import bendtorch-core@0.1.0.0/src/tensor/elementwise.bend as Elementwise
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

520def step_observe(-shape: Shape.Shape, step: Step<shape>, index: U32) -> Maybe<&2, F32>:
521  match step:
522    case Stop{left, right, error}:
523      None{}
524    case Continue{State{left, right, output}}:
525      Core.observe(shape, output, index)

Uses (7)

Used by (2)