tf.train.get_checkpoint_state

View source on GitHub

Returns CheckpointState proto from the "checkpoint" file.

tf.train.get_checkpoint_state(
    checkpoint_dir, latest_filename=None
)

If the "checkpoint" file contains a valid CheckpointState proto, returns it.

Args:

Returns:

A CheckpointState if the state was available, None otherwise.

Raises: