Skip to main content

Module composite

Module composite 

Source
Expand description

Composite / Virtual layout descriptor — the head payload for a composite tensor.

Tag 0x0B. The composite head is a virtual (data-less) descriptor: it owns no buffers. Its layout-specific payload declares the composition rule that binds the member_count tensor descriptors that immediately follow it in stream/file order. See docs/spec/layouts/composite.md for the full normative definition.

This module carries only the wire-level head payload (CompositeLayout and its CompositionRule/CombineOp fields). The cross-descriptor aggregate — a head plus its actual member TensorDescriptors, and the stateful validator that checks them against each other — lives in the separate top-level crate::composite module (distinct module path; see that module’s docs for why the two are kept apart).

Structs§

CompositeLayout
The composite head’s layout-specific payload (spec § Head Layout-Specific Fields).

Enums§

CombineOp
The combine operation for an overlay composition (composition_rule = 0x02).
CompositionRule
The composition rule declared by a composite head (composition_rule wire field).