cupy.asanyarray#
- cupy.asanyarray(a, dtype=None, order=None)[source]#
Converts an object to array.
This is currently equivalent to
cupy.asarray()
, since there is no subclass ofcupy.ndarray
in CuPy. Note that the originalnumpy.asanyarray()
returns the input array as is if it is an instance of a subtype ofnumpy.ndarray
.See also