Unverified Commit fe379f85 authored by Chengjiang Li's avatar Chengjiang Li Committed by GitHub
Browse files

[Fix]Make sure the args tb_writer passed to the TensorBoardCallback works (#13636)

parent d8049331
......@@ -364,6 +364,7 @@ class TensorBoardCallback(TrainerCallback):
if trial_name is not None:
log_dir = os.path.join(args.logging_dir, trial_name)
if self.tb_writer is None:
self._init_summary_writer(args, log_dir)
if self.tb_writer is not None:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment