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)
244
var inputInfos = GetOnnxVariablesFromMetadata(
_session
.InputMetadata, shapeDictionary, inputTypePool, null);
245
var outputInfos = GetOnnxVariablesFromMetadata(
_session
.OutputMetadata, shapeDictionary, outputTypePool, casterPool);
246
var overrideableInitializers = GetOnnxVariablesFromMetadata(
_session
.OverridableInitializerMetadata, shapeDictionary, inputTypePool, null);
255
_session
.Dispose();
387
return
_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();