tf.contrib.learn.monitors.CheckpointSaver.__init__()

tf.contrib.learn.monitors.CheckpointSaver.__init__(checkpoint_dir, save_secs=None, save_steps=None, saver=None, checkpoint_basename='model.ckpt', scaffold=None)

Initialize CheckpointSaver monitor.

Args:
  • checkpoint_dir: str, base directory for the checkpoint files.
  • save_secs: int, save every N secs.
  • save_steps: int, save every N steps.
  • saver: Saver object, used for saving.
  • checkpoint_basename: str, base name for the checkpoint files.
  • scaffold: Scaffold, use to get saver object.
Raises:
  • ValueError: If both save_steps and save_secs are not None.
  • ValueError: If both save_steps and save_secs are None.
doc_TensorFlow
2016-10-14 13:06:10
Comments
Leave a Comment

Please login to continue.