bundles / scipy 1.17.1 / scipy / _lib / array_api_compat / common / _helpers / is_cupy_array
function
scipy._lib.array_api_compat.common._helpers:is_cupy_array
source: /scipy/_lib/array_api_compat/common/_helpers.py :124
Signature
def is_cupy_array ( x : object ) → bool Summary
Return True if x is a CuPy array.
Extended Summary
This function does not import CuPy if it has not already been imported and is therefore cheap to use.
This also returns True for cupy.ndarray subclasses and CuPy scalar objects.
See also
Aliases
-
scipy.differentiate.xpx._delegation._funcs._compat.is_cupy_array