Share via


BertOnnxOptions.NormalizeEmbeddings Property

Definition

Gets or sets whether the resulting embedding vectors should be explicitly normalized. Defaults to false.

public bool NormalizeEmbeddings { get; set; }
member this.NormalizeEmbeddings : bool with get, set
Public Property NormalizeEmbeddings As Boolean

Property Value

Remarks

Normalized embeddings may be compared more efficiently, such as by using a dot product rather than cosine similarity.

Applies to