3 writes to _session
Microsoft.ML.Vision (3)
ImageClassificationTrainer.cs (3)
614_session = LoadTensorFlowSessionFromMetaGraph(Host, _options.Arch).Session; 724_session = null; 1215_session = LoadTFSessionByModelFilePath(Host, frozenModelPath, false);
14 references to _session
Microsoft.ML.Vision (14)
ImageClassificationTrainer.cs (14)
492private Graph Graph => _session.graph; 615_session.graph.as_default(); 625new Runner(_session, operations: new IntPtr[] { tf.global_variables_initializer() }).Run(); 667var imageProcessor = new ImageProcessor(_session, _jpegDataTensorName, _resizedImageTensorName); 723var session = _session; 733if (_session.graph.OperationByName(_labelTensor.name.Split(':')[0]) == null) 830Runner runner = new Runner(_session, new[] { inputTensorName }, new[] { outputTensorName }); 959validationEvalRunner = new Runner(_session, new[] { _bottleneckInput.name, _labelTensor.name }, 963runner = new Runner(_session, runnerInputTensorNames.ToArray(), 971_session.graph); 974trainSaver.save(_session, _checkpointPath); 1068trainSaver.save(_session, _checkpointPath); 1213_session.graph.Dispose(); 1214_session.Dispose();