Solved by ptrblck in post #5 
              
              
                It depends if they were set to .eval() before, but the default mode is train() after loading the model. 
If you want to set the complete model to eval mode, just use model.eval(). 
Alternatively, if you just want to apply it on all batch norm layers, you could use: 
def set_bn_eval(module):
    if i…