parameters: (self)
return_statement: return is_exit
docstring: Check if the summary process should survive.
docstring_summary: Check if the summary process should survive.
docstring_tokens: Check if the summary process should survive .
function: def _check_heartbeat(self):
          """Check if the summary process should survive."""
          is_exit = False
          if not psutil.pid_exists(self._training_pid):
              logger.warning("The training process %d has exited, summary process will exit.", self._training_pid)
              is_exit = True
  
          if not self._writers:
              logger.warning("Can not find any writer to write summary data, "
                             "so SummaryRecord will not record data.")
              is_exit = True
  
          return is_exit
function_tokens: def _check_heartbeat ( self ) : is_exit = False if not psutil . pid_exists ( self . _training_pid ) : logger . warning ( "The training process %d has exited, summary process will exit." , self . _training_pid ) is_exit = True if not self . _writers : logger . warning ( "Can not find any writer to write summary data, " "so SummaryRecord will not record data." ) is_exit = True return is_exit