@ptrblck  f I call model.eval(). I will be only able to predict the results. But unable to get validation loss.
I can get it as:
with torch.no_grad():
for image,target in val_loader:
…
But I can’t put model to evaluation state. Is there any way I could calculate validation loss. (Because if i do it in model.train()  batch normalization and dropout will be active)