Skip to content

Commit

Permalink
Merge pull request #721 from DumbMice/master
Browse files Browse the repository at this point in the history
Fix: make writer fw_tag windows compatible
  • Loading branch information
lanpa authored Nov 12, 2023
2 parents 092fcb0 + 6bfa39a commit ce08ab4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tensorboardX/writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ def add_scalars(
walltime = time.time() if walltime is None else walltime
fw_logdir = self._get_file_writer().get_logdir()
for tag, scalar_value in tag_scalar_dict.items():
fw_tag = fw_logdir + "/" + main_tag + "/" + tag
fw_tag = os.path.join(str(fw_logdir), main_tag, tag)
if fw_tag in self.all_writers.keys():
fw = self.all_writers[fw_tag]
else:
Expand Down

0 comments on commit ce08ab4

Please sign in to comment.