Expand description
Shard descriptor — binary encode/decode.
A shard descriptor identifies this tensor as a rectangular sub-region of a
larger logical parent tensor. It is present in the wire format when the
HAS_SHARD flag is set.
Wire layout (spec § Shard Section):
parent_shape uint64[rank] (rank × 8 bytes)
shard_offset uint64[rank] (rank × 8 bytes)Constraint: shard_offset[k] + shape[k] <= parent_shape[k] for all k.
Structs§
- Shard
Descriptor - Declares that this tensor is a rectangular shard of a larger parent tensor.