(sess, checkpoint)
Loads a checkpoint file into the session.
Loads a checkpoint file into the session.
Loads a checkpoint file into the session .
def _load_checkpoint(sess, checkpoint):
  """Loads a checkpoint file into the session."""
  model_saver = tf.train.Saver(tf.global_variables())
  checkpoint = os.path.expanduser(checkpoint)
  if tf.gfile.IsDirectory(checkpoint):
    checkpoint = tf.train.latest_checkpoint(checkpoint)
    tf.logging.info('loading latest checkpoint file: {}'.format(checkpoint))
  model_saver.restore(sess, checkpoint)
def _load_checkpoint ( sess , checkpoint ) : model_saver = tf . train . Saver ( tf . global_variables ( ) ) checkpoint = os . path . expanduser ( checkpoint ) if tf . gfile . IsDirectory ( checkpoint ) : checkpoint = tf . train . latest_checkpoint ( checkpoint ) tf . logging . info ( 'loading latest checkpoint file: {}' . format ( checkpoint ) ) model_saver . restore ( sess , checkpoint )