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