1 write to _map
Microsoft.ML.Tokenizers (1)
Model\Cache.cs (1)
21
_map
= new Dictionary<TKey, TValue>(capacity);
6 references to _map
Microsoft.ML.Tokenizers (6)
Model\Cache.cs (6)
14
private object SyncObj =>
_map
;
28
return
_map
.TryGetValue(key, out value!);
36
if (
_map
.TryGetValue(key, out TValue? v))
41
_map
[key] = value;
50
if (
_map
.Count < _capacity)
52
_map
[key] = value;