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 of cupy.ndarray in CuPy. Note that the original numpy.asanyarray() returns the input array as is if it is an instance of a subtype of numpy.ndarray.