Replies: 1 comment 1 reply
-
yes, no_grad is automatically applied around the validation loop: https://github.com/PyTorchLightning/pytorch-lightning/blob/131176b9f5e544a1133240a46dca1960308b7849/pytorch_lightning/trainer/trainer.py#L1195-L1196 |
Beta Was this translation helpful? Give feedback.
1 reply
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 know will validation_step use torch.no_grad to eval model or just use model.eval()?
Beta Was this translation helpful? Give feedback.
All reactions