Example #1
0
 def _get_logdir(self, config: Dict) -> str:
     timestamp = utils.get_utcnow_time()
     config_hash = utils.get_short_hash(config)
     logdir = f"{timestamp}.{config_hash}"
     distributed_rank = self.distributed_params.get("rank", -1)
     if distributed_rank > -1:
         logdir = f"{logdir}.rank{distributed_rank:02d}"
     return logdir
Example #2
0
 def _get_logdir(self, config: Dict) -> str:
     timestamp = utils.get_utcnow_time()
     config_hash = utils.get_short_hash(config)
     logdir = f"{timestamp}.{config_hash}"
     return logdir