cupy / cupy

NumPy & SciPy for GPU

Home Page:https://cupy.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Use of NumPy type aliases to be removed in NumPy 2.0

lucascolley opened this issue · comments

numpy/numpy#24376 removed some type aliases for NumPy 2.0

In SciPy (through an unusual test we have) we found errors due to the use of numpy.float_ in CuPy. From a brief search I see that there are also uses of numpy.complex_.

(This shouldn't be failing SciPy's test suite, just putting it on your radar for NumPy 2.0 compat)

Thanks! numpy.float_ and complex_ usages in CuPy are only here:

cdef object _numpy_float_ = numpy.float_
cdef object _numpy_complex_ = numpy.complex_

(also used in test code and documentation)