Existence check for hparams now uses underlying filesystem (#5250)

Co-authored-by: Rohit Gupta <rohitgr1998@gmail.com>
(cherry picked from commit 410d67fbe8)
This commit is contained in:
Luis Perez 2021-01-05 07:36:06 -08:00 committed by Jirka Borovec
parent b347b97e84
commit 93abeba5f3
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ class TensorBoardLogger(LightningLoggerBase):
hparams_file = os.path.join(dir_path, self.NAME_HPARAMS_FILE)
# save the metatags file if it doesn't exist
if not os.path.isfile(hparams_file):
if not self._fs.isfile(hparams_file):
save_hparams_to_yaml(hparams_file, self.hparams)
@rank_zero_only