def _get_logdir(self, config: Dict) -> str: timestamp = datetime.datetime.utcnow().strftime("%y%m%d.%H%M%S") config_hash = 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
def _get_logdir(self, config: Dict) -> str: timestamp = utils.get_utcnow_time() config_hash = 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