Skip to content
Discussion options

You must be logged in to vote

You can call torch.set_grad_enabled(True) in your validation loop or in any hook you want. Doesn't that work?
And perhaps model.train() if you have normalization layers dropout or that kind of layers.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@harritaylor
Comment options

Answer selected by harritaylor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment