Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no gradient val test #285

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AstroBoy1
Copy link

The gradients for the loss on the weights is not needed during validation and test because no weight updates are made during those steps. I added the no_grad context manager: https://pytorch.org/docs/stable/generated/torch.no_grad.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant