5 writes to _session
Microsoft.ML.OnnxTransformer (5)
OnnxUtils.cs (5)
203_session = new InferenceSession(modelFile, onnxSessionOptions.CreateSessionOptions()); 215_session = new InferenceSession(modelFile, sessionOptions); 227_session = new InferenceSession(modelFile, sessionOptions); 242_session = new InferenceSession(modelFile, sessionOptions); 291_session = null;
8 references to _session
Microsoft.ML.OnnxTransformer (8)
OnnxUtils.cs (8)
279var inputInfos = GetOnnxVariablesFromMetadata(_session.InputMetadata, shapeDictionary, inputTypePool, null); 280var outputInfos = GetOnnxVariablesFromMetadata(_session.OutputMetadata, shapeDictionary, outputTypePool, casterPool); 281var overrideableInitializers = GetOnnxVariablesFromMetadata(_session.OverridableInitializerMetadata, shapeDictionary, inputTypePool, null); 290_session.Dispose(); 451return _session.Run(inputNamedOnnxValues, outputColumns); 456/// and <see cref="_session"/>) have been deleted. 467/// There are two unmanaged resources we can dispose, <see cref="_session"/> and <see cref="ModelStream"/> 478_session.Dispose();