r""" eval() 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. :class:`Dropout`, :class:`Bat
(self: T)
| 779 | return self |
| 780 | |
| 781 | def eval(self: T) -> T: |
| 782 | r""" |
| 783 | eval() |
| 784 | |
| 785 | Sets the module in evaluation mode. |
| 786 | |
| 787 | This has any effect only on certain modules. See documentations of |
| 788 | particular modules for details of their behaviors in training/evaluation |
| 789 | mode, if they are affected, e.g. :class:`Dropout`, :class:`BatchNorm1d`, |
| 790 | etc. |
| 791 | |
| 792 | This is equivalent with :meth:`self.train(False) <oneflow.nn.Module.train>`. |
| 793 | |
| 794 | Returns: |
| 795 | Module: self |
| 796 | """ |
| 797 | return self.train(False) |
| 798 | |
| 799 | def requires_grad_(self: T, requires_grad: bool = True) -> T: |
| 800 | r"""Change if autograd should record operations on parameters in this |