When using randomized/batch-dependent layers like dropout or BN is is necessary to set model.eval() before getting the outputs for a batch within a training epoch?
The question also appears on stackoverflow: https://stackoverflow.com/questions/63167099/pytorch-training-with-dropout-and-or-batch-normalization 20