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