17 references to PredictionEnginePool
Microsoft.Extensions.ML (10)
PredictionEnginePool.cs (1)
92throw new ObjectDisposedException(nameof(PredictionEnginePool<TData, TPrediction>));
PredictionEnginePoolExtensions.cs (3)
8/// Extension methods for <see cref="PredictionEnginePool{TextDataViewType, TPrediction}"/>. 21this PredictionEnginePool<TData, TPrediction> predictionEnginePool, TData example) 40this PredictionEnginePool<TData, TPrediction> predictionEnginePool, string modelName, TData example)
PredictionEnginePoolOptions.cs (1)
8/// Specifies the options to use when creating a <see cref="PredictionEnginePool{TData, TPrediction}"/>.
ServiceCollectionExtensions.cs (5)
18/// Adds a <see cref="PredictionEnginePool{TData, TPrediction}"/> and required config services to the service collection. 32services.AddSingleton<PredictionEnginePool<TData, TPrediction>>()); 36/// Adds a <see cref="PredictionEnginePool{TData, TPrediction}"/> and required config services to the service collection. 49Func<IServiceProvider, PredictionEnginePool<TData, TPrediction>> implementationFactory) 70/// Adds only the required config services for <see cref="PredictionEnginePool{TData, TPrediction}"/> to the service collection.
Microsoft.Extensions.ML.Tests (7)
PredictionEnginePoolTests.cs (7)
39var pool = sp.GetRequiredService<PredictionEnginePool<SentimentData, SentimentPrediction>>(); 49using var pool = CreatePool(loader); 72var pool = CreatePool(loader); 89using var pool = CreatePool(loader); 118private static PredictionEnginePool<SentimentData, SentimentPrediction> CreatePool(ModelLoader loader) 126return sp.GetRequiredService<PredictionEnginePool<SentimentData, SentimentPrediction>>();