Skip to content

Commit

Permalink
Update model_checkpoint.py (#3801)
Browse files Browse the repository at this point in the history
  • Loading branch information
ananthsub authored Oct 2, 2020
1 parent 7c6ed1f commit 192fc01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytorch_lightning/callbacks/model_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,5 +549,5 @@ def to_yaml(self, filepath: Optional[Union[str, Path]] = None):
best_k = {k: v.item() for k, v in self.best_k_models.items()}
if filepath is None:
filepath = os.path.join(self.dirpath, "best_k_models.yaml")
with open(filepath, "w") as fp:
with self._fs.open(filepath, "w") as fp:
yaml.dump(best_k, fp)

0 comments on commit 192fc01

Please sign in to comment.