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