def before_run(self, run_context):
    if (self._last_saved_time is None):
        training_util.write_graph(ops.get_default_graph().as_graph_def(add_shapes=True), self._checkpoint_dir, 'graph.pbtxt')
        self._summary_writer.add_graph(ops.get_default_graph())
    return SessionRunArgs(self._global_step_tensor)
def before_run(self, run_context):
    if (self._last_saved_time is None):
        training_util.write_graph(ops.get_default_graph().as_graph_def(add_shapes=True), self._checkpoint_dir, 'graph.pbtxt')
        self._summary_writer.add_graph(ops.get_default_graph())
    return SessionRunArgs(self._global_step_tensor)