Skip to main content

Crate virtio_accel_tosa_build

Crate virtio_accel_tosa_build 

Source
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.
OwnedGraph
An owned, incrementally assembled static TOSA graph.
OwnedOperator
An owned typed operator for incrementally assembled graphs.
OwnedShape
An owned compile-time shape for incrementally assembled graphs.
OwnedTensor
An owned tensor definition for incrementally assembled graphs.
Shape
A serialized compile-time shape value.
Tensor
A statically shaped tensor definition.

Enums§

BuildError
Failure to construct a static graph accepted by the shared TOSA target.
OperatorKind

Constants§

MAX_CLAMP_BOUND_BYTES
Typed operator kinds supported by the initial authoring surface.
MAX_TRANSPOSE_RANK
Permutation entries a TRANSPOSE carries inline, one per dimension.