class_docstr: Run hook used by the evaluation routines to run the `eval_ops` N times.
docstr: Constructs the run hook.
  
  Args:
    num_evals: The number of evaluations to run for. if set to None, will
      iterate the dataset until all inputs are exhausted.
    steps_per_run: Number of steps executed per run call.
docstr_tok: ["Constructs","the","run","hook",".","Args",":","num_evals",":","The","number","of","evaluations","to","run","for",".","if","set","to","None",",","will","iterate","the","dataset","until","all","inputs","are","exhausted",".","steps_per_run",":","Number","of","steps","executed","per","run","call","."]
code: def __init__(self, num_evals, steps_per_run=1):
      """Constructs the run hook.
  
      Args:
        num_evals: The number of evaluations to run for. if set to None, will
          iterate the dataset until all inputs are exhausted.
        steps_per_run: Number of steps executed per run call.
      """
      self._num_evals = num_evals
      self._evals_completed = None
      self._steps_per_run_initial_value = steps_per_run
  
imports: import math
  import time
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import state_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.training import basic_session_run_hooks
  from tensorflow.python.training import monitored_session
  from tensorflow.python.training import session_run_hook
label_desc: Use image node_id 1 to create a new _MultiStepStopAfterNEvalsHook object from inherited base classes: session_run_hook with example: obj = _MultiStepStopAfterNEvalsHook(num_evals, steps_per_run)