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:
parent
b347b97e84
commit
93abeba5f3
|
@ -218,7 +218,7 @@ class TensorBoardLogger(LightningLoggerBase):
|
||||||
hparams_file = os.path.join(dir_path, self.NAME_HPARAMS_FILE)
|
hparams_file = os.path.join(dir_path, self.NAME_HPARAMS_FILE)
|
||||||
|
|
||||||
# save the metatags file if it doesn't exist
|
# 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)
|
save_hparams_to_yaml(hparams_file, self.hparams)
|
||||||
|
|
||||||
@rank_zero_only
|
@rank_zero_only
|
||||||
|
|
Loading…
Reference in New Issue