From 6bfa39a16c4f8e7bf6ae80664776922b9bfec74c Mon Sep 17 00:00:00 2001 From: yangbangcheng Date: Thu, 2 Nov 2023 22:10:35 +0800 Subject: [PATCH] Fix: make writer fw_tag windows compatible --- tensorboardX/writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorboardX/writer.py b/tensorboardX/writer.py index d7f2017..c1fbffd 100644 --- a/tensorboardX/writer.py +++ b/tensorboardX/writer.py @@ -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: