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

tf.contrib.learn.monitors.StopAtStep.__init__(num_steps=None, last_step=None)

Create a StopAtStep monitor.

This monitor requests stop after either a number of steps have been executed or a last step has been reached. Only of the two options can be specified.

if num_steps is specified, it indicates the number of steps to execute after begin() is called. If instead last_step is specified, it indicates the last step we want to execute, as passed to the step_begin() call.

Args:
  • num_steps: Number of steps to execute.
  • last_step: Step after which to stop.
Raises:
  • ValueError: If one of the arguments is invalid.
doc_TensorFlow
2016-10-14 13:06:42
Comments
Leave a Comment

Please login to continue.