Sets the gradient of all parameters in the model to zero.
(self)
| 99 | handler.handle_gradient() |
| 100 | |
| 101 | def zero_grad(self): |
| 102 | """Sets the gradient of all parameters in the model to zero.""" |
| 103 | self.optimizer.zero_grad() |
| 104 | |
| 105 | def step(self): |
| 106 | """ |
no outgoing calls
no test coverage detected