nnrl/optim/utils.py
def optimize(self):
            """Zero grads before yielding and step the optimizer upon exit."""
            self.zero_grad()
            yield
            self.step()
Zero grads before yielding and step the optimizer upon exit.
Zero grads before yielding and step the optimizer upon exit.
Zero grads before yielding and step the optimizer upon exit .
def optimize(self):
            self.zero_grad()
            yield
            self.step()
def optimize ( self ) : self . zero_grad ( ) yield self . step ( )
Zero grads before yielding and step the optimizer upon exit.
Zero grads before yielding and step the optimizer upon exit .
"""Zero grads before yielding and step the optimizer upon exit."""
self