Method ClsPool
- Namespace
- Qavren.Edge.Embeddings.Onnx
- Assembly
- Qavren.Edge.Embeddings.Onnx.dll
ClsPool(ReadOnlySpan<float>, int, int, Span<float>)
Copies row zero, the [CLS] position. bge-small-en-v1.5 pools this way.
public static void ClsPool(ReadOnlySpan<float> lastHiddenState, int sequenceLength, int dimensions, Span<float> destination)