1 instantiation of BestPathNode
Microsoft.ML.Tokenizers (1)
Model\SentencePieceUnigramModel.cs (1)
533bestPathEndsAt[i] = new BestPathNode();
19 references to BestPathNode
Microsoft.ML.Tokenizers (19)
Model\SentencePieceUnigramModel.cs (19)
395BestPathNode[] bestPathEndsAt = ArrayPool<BestPathNode>.Shared.Rent(normalizationSpan.Length + 1); 410ref BestPathNode node = ref bestPathEndsAt[endsAt]; 455ArrayPool<BestPathNode>.Shared.Return(bestPathEndsAt); 521private void Encode(ReadOnlySpan<byte> normalized, Span<BestPathNode> bestPathEndsAt) 562ref BestPathNode targetNode = ref bestPathEndsAt[keyPos]; 585ref BestPathNode targetNode = ref bestPathEndsAt[startsAt + mbLen]; 835BestPathNode[] bestPathEndsAt = ArrayPool<BestPathNode>.Shared.Rent(normalizationSpan.Length + 1); 849ref BestPathNode node = ref bestPathEndsAt[endsAt]; 871ArrayPool<BestPathNode>.Shared.Return(bestPathEndsAt); 1166BestPathNode[] bestPathEndsAt = ArrayPool<BestPathNode>.Shared.Rent(normalizationSpan.Length + 1); 1181ref BestPathNode node = ref bestPathEndsAt[endsAt]; 1192ArrayPool<BestPathNode>.Shared.Return(bestPathEndsAt); 1417BestPathNode[] bestPathEndsAt = ArrayPool<BestPathNode>.Shared.Rent(normalizationSpan.Length + 1); 1426ref BestPathNode node = ref bestPathEndsAt[endsAt]; 1470ArrayPool<BestPathNode>.Shared.Return(bestPathEndsAt);