()
Get the training dir to be used by the model.
Get the training dir to be used by the model.
Get the training dir to be used by the model .
def get_checkpoint():
  """Get the training dir to be used by the model."""
  if FLAGS.run_dir and FLAGS.bundle_file and not FLAGS.save_generator_bundle:
    raise sequence_generator.SequenceGeneratorError(
        'Cannot specify both bundle_file and run_dir')
  if FLAGS.run_dir:
    train_dir = os.path.join(os.path.expanduser(FLAGS.run_dir), 'train')
    return train_dir
  else:
    return None
def get_checkpoint ( ) : if FLAGS . run_dir and FLAGS . bundle_file and not FLAGS . save_generator_bundle : raise sequence_generator . SequenceGeneratorError ( 'Cannot specify both bundle_file and run_dir' ) if FLAGS . run_dir : train_dir = os . path . join ( os . path . expanduser ( FLAGS . run_dir ) , 'train' ) return train_dir else : return None