def step_left

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

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

158def step_left(+operation: Operation, -shape: Shape.Shape, +index: U32, right: Core.Dynamic,
159  output: Core.Tensor<shape>, right_index: U32, pair: Core.Dynamic & Result<&2, &2, Core.Error, F32>) -> Step<shape>:
160  (left, result) = pair
161  match result:
162    case Fail{error}:
163      Stop{left, right, error}
164    case Done{left_value}:
165      step_right(operation, shape, index, left, output, left_value, Core.read_dynamic(right, right_index))

Uses (13)

Used by (6)