(self)
return self.optimizer.zero_grad()
Clears the gradients of all optimized parameters.
Clears the gradients of all optimized parameters.
Clears the gradients of all optimized parameters .
def zero_grad(self):
        """Clears the gradients of all optimized parameters."""
        return self.optimizer.zero_grad()
def zero_grad ( self ) : return self . optimizer . zero_grad ( )