2 instantiations of PoolLoader
Microsoft.Extensions.ML (2)
PredictionEnginePool.cs (2)
39
_defaultEnginePool = new
PoolLoader
<TData, TPrediction>(_serviceProvider, defaultOptions);
114
var pool = new
PoolLoader
<TData, TPrediction>(_serviceProvider, options);
7 references to PoolLoader
Microsoft.Extensions.ML (7)
PredictionEnginePool.cs (7)
24
private readonly
PoolLoader
<TData, TPrediction> _defaultEnginePool;
25
private readonly ConcurrentDictionary<string,
PoolLoader
<TData, TPrediction>> _namedPools;
42
_namedPools = new ConcurrentDictionary<string,
PoolLoader
<TData, TPrediction>>();
88
if (_namedPools.TryGetValue(modelName, out
var
existingPool))
106
var
pool = AddPool(modelName);
110
private
PoolLoader
<TData, TPrediction> AddPool(string modelName)
114
var
pool = new PoolLoader<TData, TPrediction>(_serviceProvider, options);