Set the model in evaluation mode. Args: mode(bool): when mode is True, this model will enter training mode
(self, mode=True)
| 231 | raise NotImplementedError |
| 232 | |
| 233 | def train(self, mode=True): |
| 234 | """Set the model in evaluation mode. |
| 235 | |
| 236 | Args: |
| 237 | mode(bool): when mode is True, this model will enter training mode |
| 238 | """ |
| 239 | self.training = mode |
| 240 | autograd.training = mode |
| 241 | |
| 242 | def eval(self): |
| 243 | """Sets the model in evaluation mode. |