Expand description
Safe authoring of static, single-block TOSA 1.0 artifacts.
The raw FlatBuffers layout is private to this crate. Borrowed Graph definitions suit
statically declared artifacts, while OwnedGraph supports frontends that discover names,
shapes, constants, and operators incrementally. Both surfaces round-trip every artifact through
virtio-accel-tosa’s bounded parser and complete target validator before returning owned bytes.
Structs§
- Graph
- A static TOSA graph containing one region and one basic block.
- Operator
- One operator and its block-local tensor references.
- Owned
Graph - An owned, incrementally assembled static TOSA graph.
- Owned
Operator - An owned typed operator for incrementally assembled graphs.
- Owned
Shape - An owned compile-time shape for incrementally assembled graphs.
- Owned
Tensor - An owned tensor definition for incrementally assembled graphs.
- Shape
- A serialized compile-time shape value.
- Tensor
- A statically shaped tensor definition.
Enums§
- Build
Error - Failure to construct a static graph accepted by the shared TOSA target.
- Operator
Kind
Constants§
- MAX_
CLAMP_ BOUND_ BYTES - Typed operator kinds supported by the initial authoring surface.
- MAX_
TRANSPOSE_ RANK - Permutation entries a
TRANSPOSEcarries inline, one per dimension.