'Returns gradient buffer attached to this NDArray.'

@property
def grad(self):

    hdl = NDArrayHandle()
    check_call(_LIB.MXNDArrayGetGrad(self.handle, ctypes.byref(hdl)))
    if (hdl.value is None):
        return None
    return NDArray(hdl)
