chainerx.asanyarray

chainerx.asanyarray(a, dtype=None, device=None)

Converts an object to an array.

This is currently equivalent to asarray(), since there are no subclasses of ndarray in ChainerX. Note that the original numpy.asanyarray() returns the input array as is, if it is an instance of a subtype of numpy.ndarray.