1 instantiation of ComponentCatalog
Microsoft.ML.Core (1)
Environment\HostEnvironmentBase.cs (1)
381
ComponentCatalog = new
ComponentCatalog
();
78 references to ComponentCatalog
Microsoft.ML.Core (17)
CommandLine\CmdParser.cs (7)
653
ComponentCatalog
.ComponentInfo component;
1925
var
catalog = env.ComponentCatalog;
2104
var
catalog = env.ComponentCatalog;
2377
return
ComponentCatalog
.CreateInstance<TComponent>(
2395
return
ComponentCatalog
.CreateInstance<TComponent>(
2414
return
ComponentCatalog
.CreateInstance<TComponent>(
2434
return
ComponentCatalog
.CreateInstance<TComponent>(
ComponentModel\AssemblyLoadingUtils.cs (1)
250
private static void TryRegisterAssembly(
ComponentCatalog
catalog, Assembly assembly)
ComponentModel\ComponentCatalog.cs (3)
1125
typeof(
ComponentCatalog
).Assembly.GetName().GetPublicKey());
1139
throw env.Except($"Unable to locate an extension for the contract '{contractName}'. Ensure you have called {nameof(
ComponentCatalog
)}.{nameof(
ComponentCatalog
.RegisterAssembly)} with the Assembly that contains a class decorated with a '{attributeType.FullName}'.");
Data\IHostEnvironment.cs (1)
69
ComponentCatalog
ComponentCatalog { get; }
Data\ModelLoading.cs (3)
253
ComponentCatalog
.TryCreateInstance<object, TSig>(env, out tmp, sig, "", args))
267
ComponentCatalog
.TryCreateInstance<object, TSig>(env, out tmp, sigAlt, "", args))
284
private void EnsureLoaderAssemblyIsRegistered(
ComponentCatalog
catalog)
Data\ServerChannel.cs (1)
182
ComponentCatalog
.ComponentInfo component;
Environment\HostEnvironmentBase.cs (1)
359
public
ComponentCatalog
ComponentCatalog { get; }
Microsoft.ML.Core.Tests (8)
UnitTests\TestEntryPoints.cs (8)
238
var
catalog = Env.ComponentCatalog;
266
var
catalog = Env.ComponentCatalog;
335
var
catalog = Env.ComponentCatalog;
365
var
catalog = Env.ComponentCatalog;
3334
var
catalog = Env.ComponentCatalog;
3335
bool success = catalog.TryFindEntryPoint("Transforms.MinMaxNormalizer", out
ComponentCatalog
.EntryPointInfo info);
3391
var
catalog = Env.ComponentCatalog;
3392
bool success = catalog.TryFindEntryPoint("Trainers.StochasticDualCoordinateAscentBinaryClassifier", out
ComponentCatalog
.EntryPointInfo info);
Microsoft.ML.Data (20)
Commands\ScoreCommand.cs (2)
309
ComponentCatalog
.LoadableClassInfo info = null;
401
return
ComponentCatalog
.TryCreateInstance<ISchemaBindableMapper, SignatureBindableMapper>(
EntryPoints\EntryPointNode.cs (5)
407
private readonly
ComponentCatalog
.EntryPointInfo _entryPoint;
572
ComponentCatalog
.EntryPointInfo info;
591
ComponentCatalog
catalog,
599
ComponentCatalog
.EntryPointInfo info;
842
public
ComponentCatalog
Catalog => _host.ComponentCatalog;
EntryPoints\InputBuilder.cs (11)
53
private readonly
ComponentCatalog
_catalog;
55
public InputBuilder(IExceptionContext ectx, Type inputType,
ComponentCatalog
catalog)
347
bool success = _catalog.TryFindComponent(type, out
ComponentCatalog
.ComponentInfo instanceInfo);
352
ComponentCatalog
.ComponentInfo defaultInfo = null;
400
private static object ParseJsonValue(IExceptionContext ectx, Type type, Attributes attributes, JToken value,
ComponentCatalog
catalog)
462
Func<IExceptionContext, JArray, Attributes,
ComponentCatalog
, object> makeArray = MakeArray<int>;
480
Func<IExceptionContext, JObject, Attributes,
ComponentCatalog
, object> makeDict = MakeDictionary<int>;
544
private static IComponentFactory GetComponentJson(IExceptionContext ectx, Type signatureType, string name, JObject settings,
ComponentCatalog
catalog)
555
if (!catalog.TryFindComponent(kind, name, out
ComponentCatalog
.ComponentInfo component))
577
private static object MakeArray<T>(IExceptionContext ectx, JArray jArray, Attributes attributes,
ComponentCatalog
catalog)
588
private static object MakeDictionary<T>(IExceptionContext ectx, JObject jDict, Attributes attributes,
ComponentCatalog
catalog)
MLContext.cs (1)
81
public
ComponentCatalog
ComponentCatalog => _env.ComponentCatalog;
Utilities\ComponentCreation.cs (1)
285
return
ComponentCatalog
.CreateInstance<TRes>(env, factory.SignatureType, factory.Name, factory.GetSettingsString(), extraArgs);
Microsoft.ML.EntryPoints (11)
JsonUtils\JsonManifestUtils.cs (11)
26
public static JObject BuildAllManifests(IExceptionContext ectx,
ComponentCatalog
catalog)
98
private static JObject BuildComponentManifest(IExceptionContext ectx,
ComponentCatalog
.ComponentInfo componentInfo,
ComponentCatalog
catalog)
114
private static JObject BuildEntryPointManifest(IExceptionContext ectx,
ComponentCatalog
.EntryPointInfo entryPointInfo,
ComponentCatalog
catalog)
148
private static JArray BuildInputManifest(IExceptionContext ectx, Type inputType,
ComponentCatalog
catalog)
279
private static JArray BuildOutputManifest(IExceptionContext ectx, Type outputType,
ComponentCatalog
catalog)
307
private static JToken BuildTypeToken(IExceptionContext ectx, FieldInfo fieldInfo, Type type,
ComponentCatalog
catalog)
393
private static JToken BuildValueToken(IExceptionContext ectx, object value, Type valueType,
ComponentCatalog
catalog)
452
private static JToken BuildComponentToken(IExceptionContext ectx, IComponentFactory value,
ComponentCatalog
catalog)
459
ComponentCatalog
.ComponentInfo componentInfo;
Microsoft.ML.Maml (11)
HelpCommand.cs (10)
145
.OrderBy(x =>
ComponentCatalog
.SignatureToString(x.SignatureTypes[0]).ToLowerInvariant());
166
kind =
ComponentCatalog
.SignatureToString(signature);
197
.ThenBy(info =>
ComponentCatalog
.SignatureToString(info.SignatureTypes[0]).ToLowerInvariant());
207
string kind =
ComponentCatalog
.SignatureToString(signature);
264
typeSig = sigs.FirstOrDefault(t =>
ComponentCatalog
.SignatureToString(t).ToLowerInvariant() == kind);
267
typeSig = sigs.FirstOrDefault(t =>
ComponentCatalog
.SignatureToString(t).StartsWithInvariantCultureIgnoreCase(kind));
276
writer.WriteLine("Available components for kind '{0}':",
ComponentCatalog
.SignatureToString(typeSig));
330
.Select(
ComponentCatalog
.SignatureToString)
409
public readonly
ComponentCatalog
.LoadableClassInfo Info;
412
public Component(string kind,
ComponentCatalog
.LoadableClassInfo info, object args)
MAML.cs (1)
119
if (!
ComponentCatalog
.TryCreateInstance<ICommand, SignatureCommand>(mainHost, out ICommand cmd, kind, settings))
Microsoft.ML.Predictor.Tests (3)
CmdLine\CmdLineReverseTest.cs (2)
86
var findLoadableClassesMethodInfo = new FuncInstanceMethodInfo1<
ComponentCatalog
,
ComponentCatalog
.LoadableClassInfo[]>(ml.ComponentCatalog.FindLoadableClasses<int>);
TestPredictors.cs (1)
838
var combiner =
ComponentCatalog
.CreateInstance<IModelCombiner>(
Microsoft.ML.ResultProcessor (3)
ResultProcessor.cs (3)
424
ComponentCatalog
.LoadableClassInfo command;
449
ComponentCatalog
.LoadableClassInfo trainerClass;
664
internal static bool ParseCommandArguments(IHostEnvironment env, string commandline, out object commandArgs, out
ComponentCatalog
.LoadableClassInfo commandClass, bool trimExe = true)
Microsoft.ML.TestFramework (1)
SubComponent.cs (1)
252
if (
ComponentCatalog
.TryCreateInstance<TRes, TSig>(env, out result, Kind, options, extra))
Microsoft.ML.TorchSharp (1)
Roberta\Modules\AttentionOutput.cs (1)
8
using static Microsoft.ML.Runtime.
ComponentCatalog
.LoadableClassInfo;
Microsoft.ML.Transforms (3)
CustomMappingCatalog.cs (2)
29
/// using <see cref="
ComponentCatalog
.RegisterAssembly(System.Reflection.Assembly, bool)"/>.</param>
63
/// using <see cref="
ComponentCatalog
.RegisterAssembly(System.Reflection.Assembly, bool)"/>.</param>
LearnerFeatureSelection.cs (1)
44
ComponentCatalog
.CreateInstance<ITrainer<IPredictorWithFeatureWeights<Single>>>(env, typeof(SignatureFeatureScorerTrainer), "SDCA", options: null));