'Sets data and grad.'

def _init_impl(self, data, ctx):

    self._data = OrderedDict()
    for i in ctx:
        self._data[i] = data.copyto(i)
    if (self.grad_req == 'null'):
        self._grad = None
        return
    self._grad = OrderedDict()
    for i in ctx:
        self._grad[i] = ndarray.zeros_like(self._data[i])
    autograd.mark_variables(self.list_data(), self.list_grad(), self.grad_req)
