Hi all,
I have a basic Pytorch question on how to use model.train() and .eval(). Let’s say I have a code like that:
For epochs:
For training mini-batches:
model.train()
.
.
.
For validation data:
model.eval()
.
Is this correct?
I am feeling that using .train() and .eval() like above causes problem because at some points both of them are true.
Thank you!