1 write to _host
Microsoft.ML.EntryPoints (1)
JsonUtils\ExecuteGraphCommand.cs (1)
42_host = env.Register(LoadName, args.Seed);
28 references to _host
Microsoft.ML.EntryPoints (28)
JsonUtils\ExecuteGraphCommand.cs (28)
43_host.CheckValue(args, nameof(args)); 45_host.CheckUserArg(args.GraphPath != null && File.Exists(args.GraphPath), nameof(args.GraphPath), "Graph path does not exist"); 58throw _host.Except(ex, "Failed to parse experiment graph: {0}", ex.Message); 61var runner = new GraphRunner(_host, graph[FieldNames.Nodes] as JArray); 66throw _host.Except("Unexpected value for '{0}': {1}", FieldNames.Inputs, graph[FieldNames.Inputs]); 73throw _host.Except("Invalid value for input: {0}", kvp.Value); 91throw _host.Except("Invalid value for output: {0}", kvp.Value); 102_host.CheckUserArg(runner != null, nameof(runner), "Provide a GraphRunner instance."); 103_host.CheckUserArg(!string.IsNullOrWhiteSpace(varName), nameof(varName), "Specify a graph variable name."); 104_host.CheckUserArg(!string.IsNullOrWhiteSpace(path), nameof(path), "Specify a valid file path."); 109var fh = new SimpleFileHandle(_host, path, false, false); 113IDataView loader = new BinaryLoader(_host, new BinaryLoader.Arguments(), path); 119pm = new PredictorModelImpl(_host, fs); 125tm = new TransformModelImpl(_host, fs); 129throw _host.Except("Port type {0} not supported", kind); 135_host.CheckUserArg(runner != null, nameof(runner), "Provide a GraphRunner instance."); 136_host.CheckUserArg(!string.IsNullOrWhiteSpace(varName), nameof(varName), "Specify a graph variable name."); 137_host.CheckUserArg(!string.IsNullOrWhiteSpace(path), nameof(path), "Specify a valid file path."); 144throw _host.ExceptNotSupp("File handle outputs not yet supported."); 150using (var ch = _host.Start("Get outputs from executed graph")) 163using (var handle = _host.CreateOutputFile(path)) 165tm.Save(_host, fs); 185throw _host.Except("Port type {0} not supported", kind); 215using (var handle = _host.CreateOutputFile(path)) 217pm.Save(_host, fs); 230saver = new BinarySaver(_host, new BinarySaver.Arguments()); 239saver = new TextSaver(_host, saverArgs); 241using (var handle = _host.CreateOutputFile(path))