InterleavedSequence<T>
Models & Types · AiDotNet.Data.Multimodal
A single interleaved sequence containing ordered segments of different modalities.
Constructors
| Constructor |
Summary |
InterleavedSequence() |
|
Properties
| Property |
Summary |
IReadOnlyList<InterleavedSegment<T>> Segments { get; } |
Gets the segments in this sequence. |
InterleavedSegment<T> Item { get; } |
|
Tensor<T> Label { get; set; } |
Gets or sets an optional label tensor for this sequence. |
int ClassIndex { get; set; } |
Gets or sets an optional class index for this sequence. |
int SegmentCount { get; } |
Gets the number of segments in this sequence. |
Methods
| Method |
Summary |
IEnumerable<InterleavedSegment<T>> GetByModality(ModalityType modality) |
Gets all segments of a specific modality type. |
ModalityType[] GetModalitySequence() |
Gets all segment modality types in order. |
void AddSegment(ModalityType modality, Tensor<T> data, string key) |
Adds a segment to the end of the sequence. |