Skip to content

Commit

Permalink
Merge pull request #3 from yihaosun1124/main
Browse files Browse the repository at this point in the history
fix the tensorboard bug
  • Loading branch information
xionghuichen authored Jun 3, 2022
2 parents 085fd71 + a9ffd2d commit eee1912
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RLA/easy_log/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ def configure(dir=None, format_strs=None, comm=None, framework='tensorflow'):
if format_strs is None:
format_strs = os.getenv('OPENAI_LOG_FORMAT', 'stdout,log,csv').split(',')
format_strs = filter(None, format_strs)
output_formats = [make_output_format(f, dir, log_suffix) for f in format_strs]
output_formats = [make_output_format(f, dir, log_suffix, framework) for f in format_strs]
warn_output_formats = make_output_format('warn', dir, log_suffix, framework)
backup_output_formats = make_output_format('backup', dir, log_suffix, framework)

Expand Down
2 changes: 1 addition & 1 deletion RLA/easy_log/tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def _init_logger(self):
self.writer = None
# logger configure
logger.info("store file %s" % self.pkl_file)
logger.configure(self.log_dir, self.private_config["LOG_USED"])
logger.configure(self.log_dir, self.private_config["LOG_USED"], framework=self.private_config["DL_FRAMEWORK"])
for fmt in logger.Logger.CURRENT.output_formats:
if isinstance(fmt, logger.TensorBoardOutputFormat):
self.writer = fmt.writer
Expand Down

0 comments on commit eee1912

Please sign in to comment.