1 instantiation of BestPathNode
Microsoft.ML.Tokenizers (1)
Model\SentencePieceUnigramModel.cs (1)
758
bestPathEndsAt[i] = new
BestPathNode
();
19 references to BestPathNode
Microsoft.ML.Tokenizers (19)
Model\SentencePieceUnigramModel.cs (19)
620
BestPathNode
[] bestPathEndsAt = ArrayPool<
BestPathNode
>.Shared.Rent(normalizationSpan.Length + 1);
635
ref
BestPathNode
node = ref bestPathEndsAt[endsAt];
680
ArrayPool<
BestPathNode
>.Shared.Return(bestPathEndsAt);
746
private void Encode(ReadOnlySpan<byte> normalized, Span<
BestPathNode
> bestPathEndsAt)
787
ref
BestPathNode
targetNode = ref bestPathEndsAt[keyPos];
810
ref
BestPathNode
targetNode = ref bestPathEndsAt[startsAt + mbLen];
1071
BestPathNode
[] bestPathEndsAt = ArrayPool<
BestPathNode
>.Shared.Rent(normalizationSpan.Length + 1);
1085
ref
BestPathNode
node = ref bestPathEndsAt[endsAt];
1107
ArrayPool<
BestPathNode
>.Shared.Return(bestPathEndsAt);
1412
BestPathNode
[] bestPathEndsAt = ArrayPool<
BestPathNode
>.Shared.Rent(normalizationSpan.Length + 1);
1427
ref
BestPathNode
node = ref bestPathEndsAt[endsAt];
1438
ArrayPool<
BestPathNode
>.Shared.Return(bestPathEndsAt);
1673
BestPathNode
[] bestPathEndsAt = ArrayPool<
BestPathNode
>.Shared.Rent(normalizationSpan.Length + 1);
1682
ref
BestPathNode
node = ref bestPathEndsAt[endsAt];
1726
ArrayPool<
BestPathNode
>.Shared.Return(bestPathEndsAt);