Sets the model to training mode.
(self)
| 126 | return success, grad_norm |
| 127 | |
| 128 | def train(self): |
| 129 | """Sets the model to training mode.""" |
| 130 | self.training = True |
| 131 | self._model.train() |
| 132 | |
| 133 | def eval(self): |
| 134 | """Sets the model to evaluation mode.""" |
no outgoing calls
no test coverage detected