Skip to content

Commit 057ede0

Browse files
committed
small change to wording
1 parent 0869293 commit 057ede0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lightning/pytorch/utilities/parsing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ def save_hyperparameters(
172172
if any(not f.init for f in obj_fields):
173173
rank_zero_warn(
174174
"Detected a dataclass with fields with `init=False`. This is not supported by `save_hyperparameters`"
175-
" and will not save those fields. Consider removing `init=False` and just re-initialize the attributes"
176-
" in the `__post_init__` method of the dataclass."
175+
" and will not save those fields in `self.hparams`. Consider removing `init=False` and just"
176+
" re-initialize the attributes in the `__post_init__` method of the dataclass."
177177
)
178178
else:
179179
init_args = {}

0 commit comments

Comments
 (0)