Set the model in evaluation mode. Args: mode(bool): when mode is True, this model will enter training mode
(self, mode=True)
| 208 | raise NotImplementedError |
| 209 | |
| 210 | def train(self, mode=True): |
| 211 | """Set the model in evaluation mode. |
| 212 | |
| 213 | Args: |
| 214 | mode(bool): when mode is True, this model will enter training mode |
| 215 | """ |
| 216 | self.training = mode |
| 217 | autograd.training = mode |
| 218 | |
| 219 | def eval(self): |
| 220 | """Sets the model in evaluation mode. |
no outgoing calls