LightningModule and LightningDataModule using same hparams dictionary throws error in 1.4.0 + #8695
Unanswered
shivammehta25
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.
-
Hello everyone
I was using a
Namespace
object to save my hparams and was passing the same object to LightningModule and LightningDataModule. But after updating to Lightning 1.4.0 from 1.3.8, first I can no longer useself.hparams = hparams
in LightningModule. So I change it toself.save_hyperparameters(hparams)
but since I had same keys (as it is the same object). It throws this error:What are the best practices to fix this?
Regards
Beta Was this translation helpful? Give feedback.
All reactions