What's the difference between module.train(False) and module.eval()?

What’s the difference between module.train(False) and module.eval()? They seem to have the same effect. On that note, why can’t I do module.eval(False) in place of module.train()?

EDIT: as mentioned here

eval() and train(False) are equivalent

1 Like