Question 8/13 fast.ai v3 lecture 9

Let model be an object of type inheriting from torch.nn.Module.

What does model.train() and model.eval() do?

Answer

model.train() sets model.training to True, model.eval() to False

Relevant part of lecture