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 = 2Uses the representation of the first token (typically the [CLS] token).
Max = 1Takes the maximum value across all sequence positions for each dimension.
Mean = 0Averages all token representations across the sequence.