Sequence

A Sequence represents an array of tensors.

use orion::operators::sequence;

Data types

Orion supports currently these Sequence types.

Data type
dtype

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

SequenceTrait defines the operations that can be performed on a Sequence of tensors.

function
description

Constructs a tensor sequence containing the input tensors.

Returns an empty tensor sequence.

Returns the length of the input sequence.

Insert a tensor into a sequence.

Outputs the tensor at the specified position in the input sequence.

Concatenate a sequence of tensors into a single tensor.

Last updated