def target_offset
import bendtorch-core@0.1.0.0/src/autograd/reduce_fold.bend as ReduceFoldimport Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/contracts/broadcast.bend as Broadcast
15def target_offset(plan: Shape.BroadcastPlan, position: Nat) -> Nat:
16 Broadcast.left_map(plan, position)