Exemple #1
0
 def _init(self):
     self._loggers = []
     for cls in [_JsonLogger, _TFLogger, _VisKitLogger]:
         if cls is _TFLogger and tf is None:
             print("TF not installed - cannot log with {}...".format(cls))
             continue
         self._loggers.append(cls(self.config, self.logdir, self.uri))
     self._log_syncer = get_syncer(self.logdir, self.uri)
Exemple #2
0
 def _init(self):
     self._loggers = []
     for cls in [_JsonLogger, _TFLogger, _VisKitLogger]:
         if cls is _TFLogger and tf is None:
             print("TF not installed - cannot log with {}...".format(cls))
             continue
         self._loggers.append(cls(self.config, self.logdir, self.uri))
     self._log_syncer = get_syncer(self.logdir, self.uri)
Exemple #3
0
 def _init(self):
     self._loggers = []
     for cls in self._logger_list:
         try:
             self._loggers.append(cls(self.config, self.logdir, self.uri))
         except Exception:
             logger.exception("Could not instantiate {} - skipping.")
     self._log_syncer = get_syncer(self.logdir,
                                   self.uri,
                                   sync_function=self._sync_function)
Exemple #4
0
 def _init(self):
     self._loggers = []
     for cls in self._logger_list:
         try:
             self._loggers.append(cls(self.config, self.logdir, self.uri))
         except Exception:
             logger.exception("Could not instantiate {} - skipping.".format(
                 str(cls)))
     self._log_syncer = get_syncer(
         self.logdir, self.uri, sync_function=self._sync_function)