def step_checked

bendtorch-core@0.1.0.0 · src/tensor/core_PROOF.bend:858

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

858def step_checked(-operation: Elementwise.Operation, -plan: Shape.BroadcastPlan, -index: U32,
859  -left: Core.Dynamic, -right: Core.Dynamic, -output: Core.Tensor<Shape.output_shape(plan)>,
860  -after_left: Core.Dynamic, -after_right: Core.Dynamic, -after_output: Core.Tensor<Shape.output_shape(plan)>,
861  meaning: Elementwise.StepMeaning(operation, plan, index, Elementwise.State{left, right, output}, Elementwise.Continue{Elementwise.State{after_left, after_right, after_output}})) ->
862  Core.ObservationChecked(Core.Packed{Shape.output_shape(plan), after_output}, index):
863  (same, rest) = meaning
864  (right_same, result) = rest
865  (checked, values) = result
866  checked

Uses (11)

Used by (1)