A Sequence represents an array of tensors.
use orion::operators::sequence;
Orion supports currently these Sequence types.
Sequence
32-bit integer (signed)
Array<Tensor<i32>>
8-bit integer (signed)
Array<Tensor<i8>>
32-bit integer (unsigned)
Array<Tensor<u32>>
Fixed point (signed)
Array<Tensor<FP8x23 | FP16x16 | FP32x32 | FP64x64>>
SequenceTrait defines the operations that can be performed on a Sequence of tensors.
SequenceTrait
sequence.sequence_construct
Constructs a tensor sequence containing the input tensors.
sequence.sequence_empty
Returns an empty tensor sequence.
sequence.sequence_length
Returns the length of the input sequence.
sequence.sequence_insert
Insert a tensor into a sequence.
sequence.sequence_at
Outputs the tensor at the specified position in the input sequence.
sequence.concat_from_sequence
Concatenate a sequence of tensors into a single tensor.
Last updated 2 years ago