Asked about PyTorch in practice

What does model.eval() do?

An answer that works

Switches layers that behave differently at inference, notably dropout and batch normalisation, into evaluation mode. Forgetting it makes validation numbers noisy and pessimistic, and forgetting to switch back disables dropout for the rest of training.

Reading an answer is not being able to give one. The section that teaches this is PyTorch in practice, 6 hours of PyTorch.

Learn this properly