def cell_at
import bendtorch-core@0.1.0.0/src/tensor/gather.bend as Gatherimport Base
313# The gradient cells (o, k, r), (o, k + 1, r), ... for `left` more k, added
314# to acc in increasing k.
315# Gradient cell (o, k, r) and the index slot it reads.
316def cell_at(+plan: Plan, +o: Nat, +k: Nat, +r: Nat) -> Nat:
317 Plan{+kind, +outer, +extent, +inner, +length} = plan
318 position(length, inner, o, k, r)