PR for Issue#3114 (#3741)

Co-authored-by: Sasikanth <sasikanth@Sasikanths-MacBook-Pro.local>
This commit is contained in:
Sasikanth Kotti 2020-09-30 18:06:27 +05:30 committed by GitHub
parent ab508dae0c
commit 8014d455b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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: