def left_walk

bendtorch-core@0.1.0.0 · src/tensor/contracts/broadcast.bend:9

import bendtorch-core@0.1.0.0/src/tensor/contracts/broadcast.bend as Broadcast
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape

9def left_walk(-left: List<&2, Nat>, -right: List<&2, Nat>, -output: List<&2, Nat>,
10  map: Shape.Index<left, right, output>, +index: Nat) -> Nat:
11  match map:
12    case Shape.Indexed{rows, exact}:
13      Shape.walk_left(rows, index)
14    case Shape.Unindexed{zero}:
15      0n

Uses (4)

Used by (8)