PR for Issue#3114 (#3741)
Co-authored-by: Sasikanth <sasikanth@Sasikanths-MacBook-Pro.local>
This commit is contained in:
parent
ab508dae0c
commit
8014d455b7
|
@ -215,8 +215,9 @@ class TensorBoardLogger(LightningLoggerBase):
|
|||
# prepare the file path
|
||||
hparams_file = os.path.join(dir_path, self.NAME_HPARAMS_FILE)
|
||||
|
||||
# save the metatags file
|
||||
save_hparams_to_yaml(hparams_file, self.hparams)
|
||||
# save the metatags file if it doesn't exist
|
||||
if not os.path.isfile(hparams_file):
|
||||
save_hparams_to_yaml(hparams_file, self.hparams)
|
||||
|
||||
@rank_zero_only
|
||||
def finalize(self, status: str) -> None:
|
||||
|
|
Loading…
Reference in New Issue