def is_checkpoint_specified(checkpoint_config):
  """Whether or not the checkpoint config specifies a checkpoint."""
  return (checkpoint_config.path
          or checkpoint_config.run_dir
          or checkpoint_config.id)