Skip to content

Commit

Permalink
Merge branch 'bugfix/4156_yaml-fsspec' of https://github.com/PyTorchL…
Browse files Browse the repository at this point in the history
…ightning/pytorch-lightning into bugfix/4156_yaml-fsspec
  • Loading branch information
Borda committed Oct 15, 2020
2 parents 5afdea2 + 4eab20d commit 839e655
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pytorch_lightning/core/saving.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ def save_hparams_to_yaml(config_yaml, hparams: Union[dict, Namespace]) -> None:
yaml.dump(v)
except TypeError as err:
warn(f"Skipping '{k}' parameter because it is not possible to safely dump to YAML.")
hparams[k] = type(v).__name__
else:
hparams_allowed[k] = v

Expand Down

0 comments on commit 839e655

Please sign in to comment.