

def adjust_input_types(self, indtypes):
    '\n        Attempt to cast the inputs to the required types if necessary\n        and if they are not device array.\n\n        Side effect: Only affects the element of `norm_inputs` that requires\n        a type cast.\n        '
    for (i, (ity, val)) in enumerate(zip(indtypes, self.norm_inputs)):
        if (self != val.dtype):
            if (not hasattr(val, 'astype')):
                msg = 'compatible signature is possible by casting but {0} does not support .astype()'.format(type(val))
                raise TypeError(msg)
            self.norm_inputs[i] = val.astype(ity)

dataset/ETHPy150Open numba/numba/numba/npyufunc/deviceufunc.py GUFuncCallSteps.adjust_input_types/VarMisuse@41/129 `ity`->`self`