1 write to _cache
Microsoft.ML.Tokenizers (1)
Model\EnglishRobertaTokenizer.cs (1)
169
_cache
= new StringSpanOrdinalKeyCache<List<EncodedToken>>();
6 references to _cache
Microsoft.ML.Tokenizers (6)
Model\EnglishRobertaTokenizer.cs (6)
386
if (
_cache
.TryGetValue(text, out List<EncodedToken>? hit))
394
_cache
.Set(text.ToString(), result);
670
if (
_cache
.TryGetValue(text, out List<EncodedToken>? hit))
700
_cache
.Set(text.ToString(), result);
715
if (
_cache
.TryGetValue(text, out List<EncodedToken>? hit))
745
_cache
.Set(text.ToString(), result);