Scaling variables in manual_backward when using mixed precision #13424
Unanswered
marcmk6
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment
-
@rohitgr7 Could you help with this? |
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.
-
Hi,
The algorithm that I'm working on directly issues gradient of "loss" w.r.t. model predictions, so I need get related variables (
model_prediction
andgradient
in the following example) scaled when using mixed precision. How can I achieve this?Thanks
Beta Was this translation helpful? Give feedback.
All reactions