11.5.40.48. to_device

Array.to_device(device, /, *, stream=None)

For Array API compatibility. Since NumPy only supports CPU arrays, this method is a no-op that returns the same array.

11.5.40.48. Parameters

device“cpu”

Must be "cpu".

streamNone, optional

Currently unsupported.

11.5.40.48. Returns

outSelf

Returns the same array.