How can I test my pytorch model on validation data during training?
I know that there is the function `myNet.eval()` which apparantly switches of any dropout layers, but is it also preventing the gradients from being accumulated?  

Also how would I undo the `myNet.eval()` command in order to continue with the training? 

If anyone has some code snippet / toy example I would be grateful!