Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warning message formatting in save_hyperparameters #12498

Merged
merged 1 commit into from Mar 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion pytorch_lightning/utilities/parsing.py
Expand Up @@ -243,7 +243,7 @@ def save_hyperparameters(
if isinstance(init_args[k], nn.Module):
rank_zero_warn(
f"Attribute {k!r} is an instance of `nn.Module` and is already saved during checkpointing."
f" It is recommended to ignore them using `self.save_hyperparameters(ignore=[{k}!r])`."
f" It is recommended to ignore them using `self.save_hyperparameters(ignore=[{k!r}])`."
)

if not args:
Expand Down