1 instantiation of BestPathNode
Microsoft.ML.Tokenizers (1)
Model\SentencePieceUnigramModel.cs (1)
483
bestPathEndsAt[i] = new
BestPathNode
();
19 references to BestPathNode
Microsoft.ML.Tokenizers (19)
Model\SentencePieceUnigramModel.cs (19)
345
BestPathNode
[] bestPathEndsAt = ArrayPool<
BestPathNode
>.Shared.Rent(normalizationSpan.Length + 1);
360
ref
BestPathNode
node = ref bestPathEndsAt[endsAt];
405
ArrayPool<
BestPathNode
>.Shared.Return(bestPathEndsAt);
471
private void Encode(ReadOnlySpan<byte> normalized, Span<
BestPathNode
> bestPathEndsAt)
512
ref
BestPathNode
targetNode = ref bestPathEndsAt[keyPos];
535
ref
BestPathNode
targetNode = ref bestPathEndsAt[startsAt + mbLen];
785
BestPathNode
[] bestPathEndsAt = ArrayPool<
BestPathNode
>.Shared.Rent(normalizationSpan.Length + 1);
799
ref
BestPathNode
node = ref bestPathEndsAt[endsAt];
821
ArrayPool<
BestPathNode
>.Shared.Return(bestPathEndsAt);
1116
BestPathNode
[] bestPathEndsAt = ArrayPool<
BestPathNode
>.Shared.Rent(normalizationSpan.Length + 1);
1131
ref
BestPathNode
node = ref bestPathEndsAt[endsAt];
1142
ArrayPool<
BestPathNode
>.Shared.Return(bestPathEndsAt);
1367
BestPathNode
[] bestPathEndsAt = ArrayPool<
BestPathNode
>.Shared.Rent(normalizationSpan.Length + 1);
1376
ref
BestPathNode
node = ref bestPathEndsAt[endsAt];
1420
ArrayPool<
BestPathNode
>.Shared.Return(bestPathEndsAt);