Closed salehsargolzaee closed 2 years ago
Thanks for the PR request. The
model.train()
needs to be added back if we're going to usemodel.eval()
I don't think model.train()
is necessary since we always evaluate the model after all the epochs are done in this code, so the default mode is train mode
before the evaluation steps. However, it's safe to add it.
Setting all the layers in the model to evaluation mode before evaluation to turn off dropout layer.