1 write to _parent
Microsoft.ML.OnnxTransformer (1)
OnnxTransform.cs (1)
510_parent = parent;
29 references to _parent
Microsoft.ML.OnnxTransformer (29)
OnnxTransform.cs (29)
511_inputColIndices = new int[_parent.Inputs.Length]; 512_inputTensorShapes = new OnnxShape[_parent.Inputs.Length]; 513_inputOnnxTypes = new Type[_parent.Inputs.Length]; 515var model = _parent.Model; 516for (int i = 0; i < _parent.Inputs.Length; i++) 518var inputNodeInfo = model.ModelInfo.GetInput(_parent.Inputs[i]); 526throw new ArgumentOutOfRangeException(_parent.Inputs[i], "Only 1 unknown dimension is allowed"); 531var col = inputSchema.GetColumnOrNull(_parent.Inputs[i]); 533throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.Inputs[i]); 550throw Host.ExceptSchemaMismatch(nameof(inputSchema), "input", _parent.Inputs[i], inputNodeInfo.DataViewType.GetItemType().ToString(), type.ToString()); 561throw Contracts.Except($"Input shape mismatch: Input '{_parent.Inputs[i]}' has shape {String.Join(",", inputShape)}, but input data is of length {typeValueCount}."); 569var info = new DataViewSchema.DetachedColumn[_parent.Outputs.Length]; 570for (int i = 0; i < _parent.Outputs.Length; i++) 572var onnxOutputName = _parent.Outputs[i]; 578info[i] = new DataViewSchema.DetachedColumn(columnName, _parent.OutputTypes[i], builder.ToAnnotations()); 585var graph = _parent.Model.Graph; 610return col => Enumerable.Range(0, _parent.Outputs.Length).Any(i => activeOutput(i)) && _inputColIndices.Any(i => i == col); 613private protected override void SaveModel(ModelSaveContext ctx) => _parent.SaveModel(ctx); 622var activeOutputColNames = _parent.Outputs.Where((x, i) => activeOutput(i)).ToArray(); 624if (_parent.Model.ModelInfo.OutputsInfo[_parent.MapDataViewColumnToOnnxOutputTensor(iinfo)].DataViewType is VectorDataViewType vectorType) 635var type = _parent.Model.ModelInfo.OutputsInfo[_parent.MapDataViewColumnToOnnxOutputTensor(iinfo)].DataViewType.RawType; 697outputCache.OutputOnnxValues = _parent.Model.Run(inputNameOnnxValues, activeOutputColNames); 716var namedOnnxValue = outputCacher.Outputs[_parent.Outputs[iinfo]]; 736var namedOnnxValue = outputCacher.Outputs[_parent.Outputs[iinfo]]; 760var namedOnnxValue = outputCacher.Outputs[_parent.Outputs[iinfo]]; 762var caster = _parent.Model.ModelInfo.OutputsInfo[_parent.MapDataViewColumnToOnnxOutputTensor(iinfo)].Caster;