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 Jan 26, 2023
1 parent 5ee9009 commit bed8f48
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 @@ -430,6 +430,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.file_writer.add_scalar(k, v)

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

0 comments on commit bed8f48

Please sign in to comment.