cupynumeric.ndarray.to_device#
- ndarray.to_device(
- device: Any,
- /,
- *,
- stream: Any | None = None,
Return this array on the requested Array API device.
cuPyNumeric currently supports only
Nonefor bothdeviceandstream.- Parameters:
device (None) – Array API device token.
stream (None, optional) – Stream token.
- Returns:
out – The same array, unchanged.
- Return type:
- Raises:
ValueError – If
deviceis notNone.NotImplementedError – If
streamis notNone.