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