def CursorValid
bendtorch-core@0.1.0.0 · src/tensor/transforms.bend:144
import bendtorch-core@0.1.0.0/src/tensor/transforms.bend as Transforms
import Base
import bendtorch-core@0.1.0.0/src/shape/core.bend as Shape
import bendtorch-core@0.1.0.0/src/tensor/layout.bend as Layout
144def CursorValid(-input: Shape.Shape, -axes: List<&2, U32>, -plan: Layout.Plan<input, axes>, -cursor: Nat,
145 result: NaturalCopy<input, axes, plan, cursor>) -> Data:
146 match result:
147 case NaturalCopied{pair, index, exact, candidate}:
148 CursorExact<cursor, index>
149 case NaturalError{source}:
150 Unit