type Position
import bendtorch-core@0.1.0.0/src/tensor/signed.bend as Signedimport Base
9# PyTorch's signed axes, indices and reshape sizes, parsed into the unsigned
10# ones that the tensor operations check. A Position counts from either end, as
11# a PyTorch int does: First{k} is k, and Last{k} is -1 - k, so Last{0} is -1,
12# the last axis or element. Each integer has exactly one Position.
13type Position is Data:
14 First{k: U32}
15 Last{k: U32}