1 write to _namedPools
Microsoft.Extensions.ML (1)
PredictionEnginePool.cs (1)
42
_namedPools
= new ConcurrentDictionary<string, PoolLoader<TData, TPrediction>>();
5 references to _namedPools
Microsoft.Extensions.ML (5)
PredictionEnginePool.cs (5)
53
if (!
_namedPools
.ContainsKey(modelName))
58
return
_namedPools
[modelName].Loader.GetModel();
88
if (
_namedPools
.TryGetValue(modelName, out var existingPool))
115
pool =
_namedPools
.GetOrAdd(modelName, pool);
150
_namedPools
[modelName].PredictionEnginePool.Return(engine);