(self, *args, **kwargs)
return result
Call the stored _backprop callback, and then
        clears it. This saves memory, as otherwise we hold onto that callback
        until the next batch.
Call the stored _backprop callback, and then
        clears it. This saves memory, as otherwise we hold onto that callback
        until the next batch.
Call the stored _backprop callback and then clears it . This saves memory as otherwise we hold onto that callback until the next batch .
def backprop_and_clear(self, *args, **kwargs):
        """Call the stored _backprop callback, and then
        clears it. This saves memory, as otherwise we hold onto that callback
        until the next batch.
        """
        result = self._backprop(*args, **kwargs)
        self._batch_id = None
        self._outputs = None
        self._backprop = None
        return result
def backprop_and_clear ( self , * args , * * kwargs ) : result = self . _backprop ( * args , * * kwargs ) self . _batch_id = None self . _outputs = None self . _backprop = None return result