(self, task_manager, max_steps, every_n_steps=100)
Create a new instance of ReportProgressHook.

    Args:
      task_manager: A `TaskManager` instance that implements report_progress().
      max_steps: Maximum number of training steps.
      every_n_steps: How frequently the hook should report progress.
Create a new instance of ReportProgressHook.
Create a new instance of ReportProgressHook .
def __init__(self, task_manager, max_steps, every_n_steps=100):
    """Create a new instance of ReportProgressHook.

    Args:
      task_manager: A `TaskManager` instance that implements report_progress().
      max_steps: Maximum number of training steps.
      every_n_steps: How frequently the hook should report progress.
    """
    super(ReportProgressHook, self).__init__(every_n_steps=every_n_steps)
    logging.info("Creating ReportProgressHook to report progress every %d "
                 "steps.", every_n_steps)
    self.max_steps = max_steps
    self.task_manager = task_manager
    self.start_time = None
    self.start_step = None
def __init__ ( self , task_manager , max_steps , every_n_steps = 100 ) : super ( ReportProgressHook , self ) . __init__ ( every_n_steps = every_n_steps ) logging . info ( "Creating ReportProgressHook to report progress every %d " "steps." , every_n_steps ) self . max_steps = max_steps self . task_manager = task_manager self . start_time = None self . start_step = None