2 writes to _session
Microsoft.ML.Vision (2)
ImageClassificationTrainer.cs (2)
1388
_session
= session;
1422
_session
= LoadTFSession(env, modelBytes);
9 references to _session
Microsoft.ML.Vision (9)
ImageClassificationTrainer.cs (9)
1454
using (var buffer =
_session
.graph.ToGraphDef(status))
1471
_runner = new Runner(model.
_session
, new[] { model._graphInputTensor }, new[] { model._graphOutputTensor });
1472
_imageProcessor = new ImageClassificationTrainer.ImageProcessor(model.
_session
,
1493
_session
.graph.as_default();
1510
if (
_session
?.graph != IntPtr.Zero)
1512
_session
.graph.Dispose();
1515
if (
_session
!= null &&
_session
!= IntPtr.Zero)
1517
_session
.close();