Skip to content

Commit

Permalink
[Logging] Save json file on wandb too
Browse files Browse the repository at this point in the history
  • Loading branch information
matteobettini committed Nov 27, 2023
1 parent ee12a28 commit 792271f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions benchmarl/experiment/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ def log_evaluation(
evaluation_step=total_frames
// self.experiment_config.evaluation_interval,
)
for logger in self.loggers:
if isinstance(logger, WandbLogger):
logger.experiment.save(str(self.json_writer.path))

self.log(to_log, step=step)
if video_frames is not None:
vid = torch.tensor(
Expand Down

0 comments on commit 792271f

Please sign in to comment.