1 write to _host
Microsoft.ML.OnnxConverter (1)
41 references to _host
Microsoft.ML.OnnxConverter (41)
OnnxContextImpl.cs (41)
44_host.CheckValue(name, nameof(name));
45_host.CheckValue(name, nameof(domain));
62opSetVersion >= MinimumOpSetVersion ? opSetVersion : throw _host.ExceptParam(nameof(opSetVersion), $"Requested OpSet version {opSetVersion} is lower than the minimum required OpSet version {MinimumOpSetVersion}") :
63throw _host.ExceptParam(nameof(opSetVersion), $"Requested OpSet version {opSetVersion} is higher than the current most updated OpSet version {CurrentOpSetVersion}");
79_host.CheckNonEmpty(colName, nameof(colName));
103_host.CheckNonEmpty(variableName, nameof(variableName));
105throw _host.ExceptParam(nameof(variableName), $"Could not find '{variableName}' declared in ONNX graph");
132_host.CheckNonEmpty(prefix, nameof(prefix));
139throw _host.ExceptParam(nameof(thisTransformerMinumumOpSetVersion), $"Requested OpSet version {_opSetVersion} is lower than {registerTransformerName}'s minimum OpSet version requirement: {thisTransformerMinumumOpSetVersion}");
148_host.CheckValue(node, nameof(node));
149_host.Assert(!_nodeNames.Contains(node.Name));
158_host.CheckNonEmpty(opType, nameof(opType));
159_host.CheckValue(inputs, nameof(inputs));
160_host.CheckValue(outputs, nameof(outputs));
161_host.CheckNonEmpty(name, nameof(name));
173_host.CheckNonEmpty(prefix, nameof(prefix));
174_host.CheckValue(pred, nameof(pred));
191_host.CheckNonEmpty(colName, nameof(colName));
192_host.Assert(_columnNameMap.ContainsKey(colName));
204_host.CheckNonEmpty(colName, nameof(colName));
219_host.CheckNonEmpty(colName, nameof(colName));
234_host.CheckValue(type, nameof(type));
245_host.CheckValue(type, nameof(type));
246_host.CheckParam(IsVariableDefined(variableName), nameof(variableName));
255_host.CheckValue(type, nameof(type));
256_host.CheckValue(colName, nameof(colName));
265_host.CheckValue(variableName, nameof(variableName));
345_host.CheckValue(values, nameof(values));
347_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size");
356_host.CheckValue(values, nameof(values));
358_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size");
367_host.CheckValue(values, nameof(values));
369_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size");
378_host.CheckValue(values, nameof(values));
380_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size");
389_host.CheckValue(values, nameof(values));
391_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size");
400_host.CheckValue(values, nameof(values));
402_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size");
411_host.CheckValue(values, nameof(values));
413_host.Check(dims.Aggregate((x, y) => x * y) == values.Count(), "Number of elements doesn't match tensor size");