diff --git a/skcuda/misc.py b/skcuda/misc.py index 63dea7c..b5c0557 100644 --- a/skcuda/misc.py +++ b/skcuda/misc.py @@ -634,7 +634,7 @@ def diff(x_gpu): # List of available numerical types provided by numpy: -num_types = [np.sctypeDict[t] for t in \ +num_types = [np.sctypeDict[np.dtype(t).name] for t in \ np.typecodes['AllInteger']+np.typecodes['AllFloat']] # Numbers of bytes occupied by each numerical type: