PyTorch Lightning (Trainable Params - Wrong) #12808
Answered
by
rohitgr7
iamharsha1999
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
-
I am employing MULTI-GPU training using pytorch lightning. The below output displays the model:
I have set Encoder to be untrainable using the below code:
Shouldn't My optimizer is the following:
|
Beta Was this translation helpful? Give feedback.
Answered by
rohitgr7
Apr 20, 2022
Replies: 1 comment
-
I don't think that is the right way to turn off the gradients: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
iamharsha1999
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't think that is the right way to turn off the gradients:
https://stackoverflow.com/questions/51748138/pytorch-how-to-set-requires-grad-false