5 writes to _session
Microsoft.ML.OnnxTransformer (5)
OnnxUtils.cs (5)
204_session = new InferenceSession(modelFile, sessionOptions); 219_session = new InferenceSession(modelFile, sessionOptions); 231_session = new InferenceSession(modelFile, sessionOptions); 246_session = new InferenceSession(modelFile, sessionOptions); 295_session = null;
8 references to _session
Microsoft.ML.OnnxTransformer (8)
OnnxUtils.cs (8)
283var inputInfos = GetOnnxVariablesFromMetadata(_session.InputMetadata, shapeDictionary, inputTypePool, null); 284var outputInfos = GetOnnxVariablesFromMetadata(_session.OutputMetadata, shapeDictionary, outputTypePool, casterPool); 285var overrideableInitializers = GetOnnxVariablesFromMetadata(_session.OverridableInitializerMetadata, shapeDictionary, inputTypePool, null); 294_session.Dispose(); 455return _session.Run(inputNamedOnnxValues, outputColumns); 460/// and <see cref="_session"/>) have been deleted. 471/// There are two unmanaged resources we can dispose, <see cref="_session"/> and <see cref="ModelStream"/> 482_session.Dispose();