cupynumeric.ndarray.to_device#

ndarray.to_device(
device: Any,
/,
*,
stream: Any | None = None,
) ndarray#

Return this array on the requested Array API device.

cuPyNumeric currently supports only None for both device and stream.

Parameters:
  • device (None) – Array API device token.

  • stream (None, optional) – Stream token.

Returns:

out – The same array, unchanged.

Return type:

ndarray

Raises: