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)
279
var inputInfos = GetOnnxVariablesFromMetadata(
_session
.InputMetadata, shapeDictionary, inputTypePool, null);
280
var outputInfos = GetOnnxVariablesFromMetadata(
_session
.OutputMetadata, shapeDictionary, outputTypePool, casterPool);
281
var overrideableInitializers = GetOnnxVariablesFromMetadata(
_session
.OverridableInitializerMetadata, shapeDictionary, inputTypePool, null);
290
_session
.Dispose();
451
return
_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();