Skip to content

Commit

Permalink
Added missing metrics when logging on tensorboard (#1298)
Browse files Browse the repository at this point in the history
Co-authored-by: Riccardo Sepe <[email protected]>
Co-authored-by: Francesco Scalera <[email protected]>
  • Loading branch information
3 people committed Feb 17, 2023
1 parent 12e9917 commit e2f1043
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stable_baselines3/common/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,8 @@ def write(self, key_values: Dict[str, Any], key_excluded: Dict[str, Union[str, T
self.writer.file_writer.add_summary(experiment)
self.writer.file_writer.add_summary(session_start_info)
self.writer.file_writer.add_summary(session_end_info)
for k, v in value.metric_dict.items():
self.writer.add_scalar(k, v)

# Flush the output to the file
self.writer.flush()
Expand Down

0 comments on commit e2f1043

Please sign in to comment.