tf.contrib.framework.load_checkpoint(filepattern)

tf.contrib.framework.load_checkpoint(filepattern)

See the guide: Framework (contrib) > Checkpoint utilities

Returns CheckpointReader for latest checkpoint.

Args:

  • filepattern: Directory with checkpoints file or path to checkpoint.

Returns:

CheckpointReader object.

Raises:

  • ValueError: if checkpoint_dir doesn't have 'checkpoint' file or checkpoints.

Defined in tensorflow/contrib/framework/python/framework/checkpoint_utils.py.