@tf_export('train.load_checkpoint')
def load_checkpoint(ckpt_dir_or_file):
    'Returns `CheckpointReader` for checkpoint found in `ckpt_dir_or_file`.\n\n  If `ckpt_dir_or_file` resolves to a directory with multiple checkpoints,\n  reader for the latest checkpoint is returned.\n\n  Args:\n    ckpt_dir_or_file: Directory with checkpoints file or path to checkpoint\n      file.\n\n  Returns:\n    `CheckpointReader` object.\n\n  Raises:\n    ValueError: If `ckpt_dir_or_file` resolves to a directory with no\n      checkpoints.\n  '
    filename = _get_checkpoint_filename(ckpt_dir_or_file)
    if (filename is None):
        raise ValueError(("Couldn't find 'checkpoint' file or checkpoints in given directory %s" % ckpt_dir_or_file))
    return py_checkpoint_reader.NewCheckpointReader(filename)
Returns `CheckpointReader` for checkpoint found in `ckpt_dir_or_file`.

If `ckpt_dir_or_file` resolves to a directory with multiple checkpoints,
reader for the latest checkpoint is returned.

Args:
  ckpt_dir_or_file: Directory with checkpoints file or path to checkpoint
    file.

Returns:
  `CheckpointReader` object.

Raises:
  ValueError: If `ckpt_dir_or_file` resolves to a directory with no
    checkpoints.
@tf_export('train.load_checkpoint')
def load_checkpoint(ckpt_dir_or_file):
    'Returns `CheckpointReader` for checkpoint found in `ckpt_dir_or_file`.\n\n  If `ckpt_dir_or_file` resolves to a directory with multiple checkpoints,\n  reader for the latest checkpoint is returned.\n\n  Args:\n    ckpt_dir_or_file: Directory with checkpoints file or path to checkpoint\n      file.\n\n  Returns:\n    `CheckpointReader` object.\n\n  Raises:\n    ValueError: If `ckpt_dir_or_file` resolves to a directory with no\n      checkpoints.\n  '
    filename = _get_checkpoint_filename(ckpt_dir_or_file)
    if (filename is None):
        raise ValueError(("Couldn't find 'checkpoint' file or checkpoints in given directory %s" % ckpt_dir_or_file))
    return py_checkpoint_reader.NewCheckpointReader(filename)