Skip to main content

Module sequence

Module sequence 

Source
Expand description

ONNX sequence values and zero-copy split views.

Sequence elements reuse the session crate’s Tensor representation. A SeqTensor is an immutable view over an Arc-owned device allocation, so constructing, inserting, erasing, indexing, and splitting a sequence only clone handles and metadata. Tensor storage is never deep-copied by those operations.

Structs§

SeqTensor
An immutable tensor view used as one sequence element.
SequenceValue
An ordered homogeneous list of immutable, shared tensors.

Enums§

SequenceError
A typed failure from an ONNX sequence operation.
SplitSpec
ONNX SplitToSequence split-input interpretation.

Functions§

concat
Concatenate a sequence along an existing axis or stack it on a new axis.
split
Split raw contiguous tensor bytes into a sequence of session tensors.
split_tensor
Split a shared tensor into metadata-only views over the same allocation.

Type Aliases§

SequenceResult
Result type for sequence value and byte-helper operations.