def __init__(self, **kwargs):
    self._kwargs = kwargs
    for (k, v) in self._kwargs.items():
        if isinstance(v, nd.NDArray):
            v = v.asnumpy()
        if isinstance(v, np.ndarray):
            v = v.tolist()
            self._kwargs[k] = v
def __init__(self, **kwargs):
    self._kwargs = kwargs
    for (k, v) in self._kwargs.items():
        if isinstance(v, nd.NDArray):
            v = v.asnumpy()
        if isinstance(v, np.ndarray):
            v = v.tolist()
            self._kwargs[k] = v