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)
283
var inputInfos = GetOnnxVariablesFromMetadata(
_session
.InputMetadata, shapeDictionary, inputTypePool, null);
284
var outputInfos = GetOnnxVariablesFromMetadata(
_session
.OutputMetadata, shapeDictionary, outputTypePool, casterPool);
285
var overrideableInitializers = GetOnnxVariablesFromMetadata(
_session
.OverridableInitializerMetadata, shapeDictionary, inputTypePool, null);
294
_session
.Dispose();
455
return
_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();