Opacus and Lightining: multple optimizers and automatic optimization #15170
Unanswered
gianmarcoaversanoenx
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 am successfully running this piece of code:
But only when the definition of
LitSampleConvNetClassifier
is the following:That is, I use manual optimization. If I change the class definition as follows:
I get an error. Why? Independently from what error I get, which is Opacus-related, shouldn't the two pieces of code be equivalent? The documentation says so. If they are, then why does one succeed but the other one fails? How do they differ?
This should be better explained in the documentation.
Beta Was this translation helpful? Give feedback.
All reactions