You could call it after each batch, but this would not be necessary, if you haven’t called model.eval() between these calls.
Note that model.train() changes the internal training flag, which then changes the behavior of some modules (e.g. dropout will be disabled during evaluation).