9 references to TryGetValue
Microsoft.ML.Tokenizers (9)
Model\BPETokenizer.cs (3)
1342
if (Cache.
TryGetValue
(textSpan, out word))
1453
if (Cache.
TryGetValue
(textSpan, out Word hit))
1533
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))