cupy.asnumpy¶
-
cupy.
asnumpy
(a, stream=None)[source]¶ Returns an array on the host memory from an arbitrary source array.
Parameters: - a – Arbitrary object that can be converted to
numpy.ndarray
. - stream (cupy.cuda.Stream) – CUDA stream object. If it is specified, then
the device-to-host copy runs asynchronously. Otherwise, the copy is
synchronous. Note that if
a
is not acupy.ndarray
object, then this argument has no effect.
Returns: Converted array on the host memory.
Return type: - a – Arbitrary object that can be converted to