parameters: (self)
docstring: Initialize grad buffers.
docstring_summary: Initialize grad buffers.
docstring_tokens: Initialize grad buffers .
function: def _init_grad(self):
          """Initialize grad buffers."""
          if self.grad_req == 'null':
              self._grad = None
              return
  
          self._grad = [ndarray.zeros_like(i) for i in self._data]
          autograd.mark_variables(self.list_data(), self.list_grad(), self.grad_req)
function_tokens: def _init_grad ( self ) : if self . grad_req == 'null' : self . _grad = None return self . _grad = [ ndarray . zeros_like ( i ) for i in self . _data ] autograd . mark_variables ( self . list_data ( ) , self . list_grad ( ) , self . grad_req )