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 originalnumpy.asanyarray()
returns the input array as is, if it is an instance of a subtype ofnumpy.ndarray
.See also