def right_walk
import bendtorch-core@0.1.0.0/src/tensor/contracts/broadcast.bend as Broadcastimport Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
17def right_walk(-left: List<&2, Nat>, -right: List<&2, Nat>, -output: List<&2, Nat>,
18 map: Shape.Index<left, right, output>, +index: Nat) -> Nat:
19 match map:
20 case Shape.Indexed{rows, exact}:
21 Shape.walk_right(rows, index)
22 case Shape.Unindexed{zero}:
23 0n
Uses (4)
Used by (8)
- bendtorch-core@0.1.0.0/src/tensor/contracts/broadcast:right_map
- bendtorch-core@0.1.0.0/src/tensor/contracts/broadcast_proof:right_walk_bound
- bendtorch-core@0.1.0.0/src/autograd/reduce_fold_PROOF:offsets_walk
- bendtorch-core@0.1.0.0/src/tensor/contracts/binary_build_proof:walk_right_same
- bendtorch-core@0.1.0.0/src/autograd/reduce_parallel_proof:offsets_walk
- …