4 writes to _session
Microsoft.ML.OnnxTransformer (4)
OnnxUtils.cs (4)
181_session = new InferenceSession(modelFile, 193_session = new InferenceSession(modelFile, sessionOptions); 207_session = new InferenceSession(modelFile, sessionOptions); 256_session = null;
8 references to _session
Microsoft.ML.OnnxTransformer (8)
OnnxUtils.cs (8)
244var inputInfos = GetOnnxVariablesFromMetadata(_session.InputMetadata, shapeDictionary, inputTypePool, null); 245var outputInfos = GetOnnxVariablesFromMetadata(_session.OutputMetadata, shapeDictionary, outputTypePool, casterPool); 246var overrideableInitializers = GetOnnxVariablesFromMetadata(_session.OverridableInitializerMetadata, shapeDictionary, inputTypePool, null); 255_session.Dispose(); 387return _session.Run(inputNamedOnnxValues, outputColumns); 392/// and <see cref="_session"/>) have been deleted. 403/// There are two unmanaged resources we can dispose, <see cref="_session"/> and <see cref="ModelStream"/> 414_session.Dispose();