def source_index

bendtorch-core@0.1.0.0 · src/tensor/layout.bend:303

import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layout
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape

303def source_index(-input: Shape.Shape, -axes: List<&2, U32>, -plan: Plan<input, axes>, -i: U32,
304  mapping: Mapping<input, axes, plan, i>) -> U32:
305  Mapped{oi, oc, ic, index, requested, decoded, inverse, flattened, roundtrip} = mapping
306  index_value(input, index)

Uses (6)

Used by (34)