Skip to content

Commit

Permalink
append job-name if explicit output dir is given (#539)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffra authored Nov 18, 2020
1 parent 7752dc5 commit 5b09be6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion deepspeed/runtime/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ def get_summary_writer(self,
base=os.path.join(os.environ["HOME"],
"tensorboard")):
if self.tensorboard_output_path():
log_dir = self.tensorboard_output_path()
base_dir = self.tensorboard_output_path()
job_name = self.tensorboard_job_name()
log_dir = os.path.join(base_dir, job_name)
else:
if self.tensorboard_job_name():
name = self.tensorboard_job_name()
Expand Down

0 comments on commit 5b09be6

Please sign in to comment.