How to save hyperparameters of objects passed to LightningModule without breaking checkpoint_loading #11943
Unanswered
codingS3b
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm wondering if there is a good way within a
LightningModule
to save attributes of an object passed during construction. So far, I'm able to achieve it but problems occur when trying to load models back from a checkpoint.Hopefully the below example will make my issue more clear.
Beta Was this translation helpful? Give feedback.
All reactions