예제 #1
0
파일: config.py 프로젝트: metya/catalyst
 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
예제 #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