pub const MAX_RANK: usize = 64;Expand description
Maximum permitted tensor rank.
A writer MUST NOT emit a descriptor with rank > MAX_RANK. A reader MUST
reject any descriptor whose rank field exceeds this value.
The cap matches PyTorch’s MAX_DIMS = 64 and bounds the shape-array size
at 512 bytes (64 × 8 bytes per dimension), enabling stack allocation on the
descriptor-parsing hot path.
§Examples
use hurray_core::MAX_RANK;
assert_eq!(MAX_RANK, 64);