Fix for scatter failures on Windows
@@ -862,7 +862,7 @@ cdef _scatter_op_single(
if not issubclass(v.dtype.type,
(numpy.int32, numpy.float16, numpy.float32,
numpy.float64, numpy.uint32, numpy.uint64,
- numpy.ulonglong)):
+ numpy.intc, numpy.uintc, numpy.ulonglong)):
raise TypeError(
'scatter_add only supports int32, float16, float32, float64, '
'uint32, uint64, as data type')
@@ -871,7 +871,8 @@ cdef _scatter_op_single(
elif op == 'max':
if not issubclass(v.dtype.type,
(numpy.int32, numpy.float32, numpy.float64,
- numpy.uint32, numpy.uint64, numpy.ulonglong)):
+ numpy.uint32, numpy.uint64,
+ numpy.intc, numpy.uintc, numpy.ulonglong)):
raise TypeError(
'scatter_max only supports int32, float32, float64, '
'uint32, uint64 as data type')
@@ -880,7 +881,8 @@ cdef _scatter_op_single(
elif op == 'min':
if not issubclass(v.dtype.type,
(numpy.int32, numpy.float32, numpy.float64,
- numpy.uint32, numpy.uint64, numpy.ulonglong)):
+ numpy.uint32, numpy.uint64,
+ numpy.intc, numpy.uintc, numpy.ulonglong)):
raise TypeError(
'scatter_min only supports int32, float32, float64, '
'uint32, uint64 as data type')
