Table of Contents

Enum TransformerEmbeddingNetwork<T>.PoolingStrategy

Namespace
AiDotNet.NeuralNetworks
Assembly
AiDotNet.dll

Defines the available pooling strategies for creating a single sentence embedding.

public enum TransformerEmbeddingNetwork<T>.PoolingStrategy

Fields

ClsToken = 2

Uses the representation of the first token (typically the [CLS] token).

Max = 1

Takes the maximum value across all sequence positions for each dimension.

Mean = 0

Averages all token representations across the sequence.