contrib.training.wait_for_new_checkpoint

tf.contrib.training.wait_for_new_checkpoint

tf.contrib.training.wait_for_new_checkpoint

wait_for_new_checkpoint(
    checkpoint_dir,
    last_checkpoint=None,
    seconds_to_sleep=1,
    timeout=None
)

Defined in tensorflow/contrib/training/python/training/evaluation.py.

Waits until a new checkpoint file is found.

Args:

  • checkpoint_dir: The directory in which checkpoints are saved.
  • last_checkpoint: The last checkpoint path used or None if we're expecting a checkpoint for the first time.
  • seconds_to_sleep: The number of seconds to sleep for before looking for a new checkpoint.
  • timeout: The maximum amount of time to wait. If left as None, then the process will wait indefinitely.

Returns:

a new checkpoint path, or None if the timeout was reached.

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/training/wait_for_new_checkpoint

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部