[AMP] Full Precision in Validation #7730
Unanswered
hoangtnm
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 1 comment 3 replies
-
Hi, I'm afraid there isn't (at least not that easily). The only way I could think of is you implementing your own That being said, I also cannot think for a reason why you want to run validation in full precision when training in mixed. The operations to run should be the same and AMP only converts "safe" operations to 16bit. |
Beta Was this translation helpful? Give feedback.
3 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.
-
I want to use AMP to train GANs in mixed precision to accelerate training time, however, in
validation_step
andvalidation_epoch_end
, the model seems to run in mixed precision rather than full precision. Therefore, I cannot inference in full precision to visualize it's image generation output. Is there any way to run in full precision at validation when usingprecision 16
?Beta Was this translation helpful? Give feedback.
All reactions