EmbeddingPoolingMode Enum
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |