We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0869293 commit 057ede0Copy full SHA for 057ede0
src/lightning/pytorch/utilities/parsing.py
@@ -172,8 +172,8 @@ def save_hyperparameters(
172
if any(not f.init for f in obj_fields):
173
rank_zero_warn(
174
"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."
+ " and will not save those fields in `self.hparams`. Consider removing `init=False` and just"
+ " re-initialize the attributes in the `__post_init__` method of the dataclass."
177
)
178
else:
179
init_args = {}
0 commit comments