Skip to content

Commit

Permalink
Update utils.py (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrayraykk authored Aug 23, 2022
1 parent 658fe1a commit f93223d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion federatedscope/core/auxiliaries/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ def update_logger(cfg, clear_before_add=False):
cfg.expname = f"{cfg.federate.method}_{cfg.model.type}_on" \
f"_{cfg.data.type}_lr{cfg.train.optimizer.lr}_lste" \
f"p{cfg.train.local_update_steps}"
cfg.expname = f"{cfg.expname}_{cfg.expname_tag}"
if cfg.expname_tag:
cfg.expname = f"{cfg.expname}_{cfg.expname_tag}"
cfg.outdir = os.path.join(cfg.outdir, cfg.expname)

# if exist, make directory with given name and time
Expand Down

0 comments on commit f93223d

Please # to comment.