cupy.asarray¶
-
cupy.asarray(a, dtype=None)[source]¶ Converts an object to array.
This is equivalent to
array(a, dtype, copy=False). This function currently does not support theorderoption.Parameters: - a – The source object.
- dtype – Data type specifier. It is inferred from the input by default.
Returns: An array on the current device. If
ais already on the device, no copy is performed.Return type: See also