3 writes to Model
Microsoft.ML.OnnxTransformer (3)
OnnxTransform.cs (3)
265Model = new OnnxModel(env, options.ModelFile, options.GpuDeviceId, options.FallbackToCpu, ownModelFile: false, shapeDictionary: shapeDictionary, options.RecursionLimit, 273Model = OnnxModel.CreateFromStream(options.ModelBytes, env, options.GpuDeviceId, options.FallbackToCpu, shapeDictionary: shapeDictionary, options.RecursionLimit); 280Model = OnnxModel.CreateFromBytes(modelBytes, env, options.GpuDeviceId, options.FallbackToCpu, shapeDictionary: shapeDictionary, options.RecursionLimit);
17 references to Model
Microsoft.ML.OnnxTransformer (17)
OnnxTransform.cs (17)
288var modelInfo = Model.ModelInfo; 289Inputs = (options.InputColumns.Count() == 0) ? Model.ModelInfo.InputNames.ToArray() : options.InputColumns; 290Outputs = (options.OutputColumns.Count() == 0) ? Model.ModelInfo.OutputNames.ToArray() : options.OutputColumns; 292var numModelOutputs = Model.ModelInfo.OutputsInfo.Length; 295var outputInfo = Model.ModelInfo.GetOutput(Outputs[i]); 424ctx.SaveBinaryStream("OnnxModel", w => { w.WriteByteArray(File.ReadAllBytes(Model.ModelStream.Name)); }); 477return Model.ModelInfo.OutputNames.IndexOf(Outputs[iinfo]); 485Model?.Dispose(); 515var model = _parent.Model; 585var graph = _parent.Model.Graph; 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); 762var caster = _parent.Model.ModelInfo.OutputsInfo[_parent.MapDataViewColumnToOnnxOutputTensor(iinfo)].Caster; 1065if (Transformer.Model.ModelInfo.InputsInfo[i].Shape.Where(x => x == 0).Count() > 1) 1072var inputsInfo = Transformer.Model.ModelInfo.InputsInfo; 1073var idx = Transformer.Model.ModelInfo.InputNames.IndexOf(input);