Skip to content

Commit

Permalink
fix undefined save_model_dir when using wandb (PaddlePaddle#10251) (P…
Browse files Browse the repository at this point in the history
…addlePaddle#10709)

* fix undefined save_model_dir when using wand

* Update program.py
  • Loading branch information
itasli committed Aug 23, 2023
1 parent daa7bed commit 71b7c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ def preprocess(is_train=False):
wandb_params = config['wandb']
else:
wandb_params = dict()
wandb_params.update({'save_dir': save_model_dir})
wandb_params.update({'save_dir': save_dir})
log_writer = WandbLogger(**wandb_params, config=config)
loggers.append(log_writer)
else:
Expand Down

0 comments on commit 71b7c45

Please sign in to comment.