예제 #1
0
 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)
예제 #2
0
 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)