13 references to MLOptions
Microsoft.Extensions.ML (10)
MLOptions.cs (4)
19
/// Initializes a new instance of <see cref="
MLOptions
"/>.
36
/// Configures the <see cref="
MLOptions
"/> type.
41
internal class PostMLContextOptionsConfiguration : IPostConfigureOptions<
MLOptions
>
55
public void PostConfigure(string name,
MLOptions
options)
ModelLoaders\FileModelLoader.cs (1)
28
public FileModelLoader(IOptions<
MLOptions
> contextOptions, ILogger<FileModelLoader> logger)
ModelLoaders\UriModelLoader.cs (1)
35
public UriModelLoader(IOptions<
MLOptions
> contextOptions, ILogger<UriModelLoader> logger)
PoolLoader.cs (1)
27
var contextOptions = sp.GetRequiredService<IOptions<
MLOptions
>>();
PredictionEnginePool.cs (2)
21
private readonly
MLOptions
_mlContextOptions;
28
IOptions<
MLOptions
> mlContextOptions,
ServiceCollectionExtensions.cs (1)
83
.TryAddEnumerable(ServiceDescriptor.Singleton<IPostConfigureOptions<
MLOptions
>, PostMLContextOptionsConfiguration>());
Microsoft.Extensions.ML.Tests (3)
FileLoaderTests.cs (2)
51
var context = sp.GetRequiredService<IOptions<
MLOptions
>>().Value.MLContext;
82
public FileLoaderMock(IOptions<
MLOptions
> contextOptions, ILogger<FileModelLoader> logger)
UriLoaderTests.cs (1)
85
public UriLoaderMock(IOptions<
MLOptions
> contextOptions,