9 references to TryGetValue
Microsoft.ML.Tokenizers (9)
Model\BpeTokenizer.cs (3)
1362
if (Cache.
TryGetValue
(textSpan, out word))
1473
if (Cache.
TryGetValue
(textSpan, out Word hit))
1553
if (Cache.
TryGetValue
(textSpan, out Word hit))
Model\CodeGenTokenizer.cs (3)
439
if (_cache.
TryGetValue
(textSpan, out List<EncodedToken>? hit))
1123
if (_cache.
TryGetValue
(textSpan, out List<EncodedToken>? hit))
1187
if (_cache.
TryGetValue
(textSpan, out List<EncodedToken>? hit))
Model\EnglishRobertaTokenizer.cs (3)
386
if (_cache.
TryGetValue
(text, out List<EncodedToken>? hit))
670
if (_cache.
TryGetValue
(text, out List<EncodedToken>? hit))
715
if (_cache.
TryGetValue
(text, out List<EncodedToken>? hit))