def __init__(self, max_iter):
        """
        Args:
            max_iter (int): the maximum number of iterations to train.
                Used to compute ETA.
        """
        self.logger = logging.getLogger(__name__)
        self._max_iter = max_iter
        self._last_write = None

        Args:
            max_iter (int): the maximum number of iterations to train.
                Used to compute ETA.
        
fastreid/utils/events.py