How to save/load hyperparameters of system componenets? #5889
Unanswered
ahrzb
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment 2 replies
-
Hey @ahrzb, I would say you could try a different approach there. Have a look at our example: https://github.com/PyTorchLightning/pytorch-lightning/blob/master/pl_examples/domain_templates/generative_adversarial_net.py#L122 You shouldn't pass the generator as an argument, but only the arguments to build it.
|
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
How should I handle hyperparameters of a submodule? For example in the snippet below, say MyGenerator takes it's hparams in constructor, how should I handle that?
Beta Was this translation helpful? Give feedback.
All reactions