def _init(self): self._loggers = [] for cls in self._logger_cls_list: try: self._loggers.append(cls(self.config, self.logdir)) except Exception: logger.warning("Could not instantiate {} - skipping.".format( str(cls))) self._log_syncer = get_log_syncer(self.logdir, remote_dir=self.logdir, sync_function=self._sync_function)
def _init(self): self._loggers = [] for cls in self._logger_cls_list: try: self._loggers.append(cls(self.config, self.logdir, self.trial)) except Exception as exc: logger.warning("Could not instantiate %s: %s.", cls.__name__, str(exc)) self._log_syncer = get_log_syncer(self.logdir, remote_dir=self.logdir, sync_function=self._sync_function)