How can run two diffrent model with own's optimizer and loss? #6663
Unanswered
blakeliu
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 2 comments 2 replies
-
Would this help? #2783 (comment) |
Beta Was this translation helpful? Give feedback.
2 replies
-
Have you tried to follow the instructions of the error message? self.manual_backward(loss, opt_base, retain_graph=True) |
Beta Was this translation helpful? Give feedback.
0 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Flowing https://pytorch-lightning.readthedocs.io/en/latest/common/optimizers.html?highlight=configure_optimizers
My code as below:
@williamFalcon Please help me, thanks!
Beta Was this translation helpful? Give feedback.
All reactions