Skip to content

Commit 410d67f

Browse files
kandluisrohitgr7
andauthored
Existence check for hparams now uses underlying filesystem (#5250)
Co-authored-by: Rohit Gupta <[email protected]>
1 parent d568533 commit 410d67f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorch_lightning/loggers/tensorboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def save(self) -> None:
217217
hparams_file = os.path.join(dir_path, self.NAME_HPARAMS_FILE)
218218

219219
# save the metatags file if it doesn't exist
220-
if not os.path.isfile(hparams_file):
220+
if not self._fs.isfile(hparams_file):
221221
save_hparams_to_yaml(hparams_file, self.hparams)
222222

223223
@rank_zero_only

0 commit comments

Comments
 (0)