

def __init__(self, args, kwargs):
    self.args = args
    self.kwargs = kwargs
    self.output = self.kwargs.get('out')
    self._is_device_array = [self.is_device_array(a) for a in self.args]
    self._need_device_conversion = (not any(self._is_device_array))
    inputs = []
    for (a, isdev) in zip(self.args, self._is_device_array):
        if isdev:
            inputs.append(a)
        else:
            inputs.append(np.array(a))
    self.norm_inputs = inputs

dataset/ETHPy150Open numba/numba/numba/npyufunc/deviceufunc.py GUFuncCallSteps.__init__/original