tf.train.latest_checkpoint()函数的作用查找最新保存的checkpoint文件的文件名(Finds the filename of latest saved checkpoint file.)。
tf.train.latest_checkpoint(
checkpoint_dir,
latest_filename=None
)
Args:
checkpoint_dir: Directory where the variables were saved.;
latest_filename: Directory where the variables were saved.
Returns:
The full path to the latest checkpoint or None if no checkpoint was found.
经常与模型加载函数checkpoint.restore()共同使用。