(self)
Clear optimizer gradients.
Clear optimizer gradients.
Clear optimizer gradients .
def zero_grad(self) -> None:
        "Clear optimizer gradients."
        self.opt.zero_grad()
def zero_grad ( self ) -> None : self . opt . zero_grad ( )