Skip to content

Commit

Permalink
[BugFix] Fix Test wandb callback bug (PaddlePaddle#8056)
Browse files Browse the repository at this point in the history
  • Loading branch information
greycooker authored Mar 6, 2024
1 parent 092c845 commit 32d8b3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/trainer/test_trainer_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ def test_wandbcallback(self):
self.assertEqual(wandbcallback._wandb.run.summary["train/learning_rate"], log["learning_rate"])
self.assertEqual(wandbcallback._wandb.run.summary["train/global_step"], log["global_step"])
wandbcallback.on_train_end(args, state, control, model=model)
wandbcallback._wandb.finish()
os.environ.pop("WANDB_LOG_MODEL", None)
os.environ.pop("WANDB_MODE", None)
shutil.rmtree(output_dir)
Expand Down

0 comments on commit 32d8b3f

Please sign in to comment.