Sets the model to training mode.
(self)
| 208 | return output, label, loss |
| 209 | |
| 210 | def train(self): |
| 211 | """Sets the model to training mode.""" |
| 212 | self.training = True |
| 213 | self._model.train() |
| 214 | |
| 215 | def eval(self): |
| 216 | """Sets the model to evaluation mode.""" |
no outgoing calls
no test coverage detected