Skip to content

Commit

Permalink
Fix: make writer fw_tag windows compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
DumbMice committed Nov 2, 2023
1 parent 092fcb0 commit 6bfa39a
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 6bfa39a

Please sign in to comment.