- MnistModel.eval() T #
Sets the module in evaluation mode.
This has any effect only on certain modules. See documentations of particular modules for details of their behaviors in training/evaluation mode, if they are affected, e.g.
This is equivalent with
See Locally disabling gradient computation for a comparison between .eval() and several similar mechanisms that may be confused with it.