Freigeben über


EmbeddingPoolingMode Enum

Definition

Pooling mode used for creating the final sentence embedding.

public enum EmbeddingPoolingMode
type EmbeddingPoolingMode = 
Public Enum EmbeddingPoolingMode
Inheritance
EmbeddingPoolingMode

Fields

Name Value Description
Max 0

Uses the maximum across all token embeddings.

Mean 1

Calculates the average across all token embeddings.

MeanSquareRootTokensLength 2

Calculates the average across all token embeddings, divided by the square root of the number of tokens.

Applies to