Thanks for a reply,
And what about model.train() and model.eval() modes? Is it correct to print a loss and calculate an accuracy during training with model.train() mode on? I used it only to track a running loss.