enforced the two inputs to be cupy arrays
See discussions in cupy/cupy#1947
from cupy import core
+from cupy.creation.from_data import asanyarray
from numpy import complex64, complex128
@@ -89,6 +90,8 @@ def isclose(a, b, rtol=1.e-5, atol=1.e-8, equal_nan=False):
.. seealso:: :func:`numpy.isclose`
"""
+ a = asanyarray(a)
+ b = asanyarray(b)
if (a.dtype in [complex64, complex128]) or \
(b.dtype in [complex64, complex128]):
return _is_close_complex(a, b, rtol, atol, equal_nan)
