(self, loss: Any = 0, cur_epoch: Any = 0, max_epoch: Any = None)
Do general housekeeping and keep the state of the context up-to-date.
        Should be called often enough but not in a tight loop.
Do general housekeeping and keep the state of the context up-to-date.
        Should be called often enough but not in a tight loop.
Do general housekeeping and keep the state of the context up - to - date . Should be called often enough but not in a tight loop .
def update(self, loss: Any = 0, cur_epoch: Any = 0, max_epoch: Any = None) -> None:
        """Do general housekeeping and keep the state of the context up-to-date.
        Should be called often enough but not in a tight loop."""
        assert not self.has_closed

        self.last_update_interval = time.time() - self.last_update_time
        self.last_update_time = time.time()

        if os.path.exists(os.path.join(self.submit_config.run_dir, "abort.txt")):
            self.should_stop_flag = True
def update ( self , loss : Any = 0 , cur_epoch : Any = 0 , max_epoch : Any = None ) -> None : assert not self . has_closed self . last_update_interval = time . time ( ) - self . last_update_time self . last_update_time = time . time ( ) if os . path . exists ( os . path . join ( self . submit_config . run_dir , "abort.txt" ) ) : self . should_stop_flag = True