1 write to Cache
Microsoft.ML.Tokenizers (1)
Model\BpeTokenizer.cs (1)
343Cache = new StringSpanOrdinalKeyCache<Word>();
9 references to Cache
Microsoft.ML.Tokenizers (9)
Model\BpeTokenizer.cs (9)
1360if (Cache is not null) 1362if (Cache.TryGetValue(textSpan, out word)) 1372Cache.Set(textSpan.ToString(), word); 1471if (Cache is not null) 1473if (Cache.TryGetValue(textSpan, out Word hit)) 1488Cache.Set(textSpan.ToString(), word); 1551if (Cache is not null) 1553if (Cache.TryGetValue(textSpan, out Word hit)) 1569Cache.Set(textSpan.ToString(), word);