[ Web Proxy ]
URL:
Viewing: https://numpy.org/doc/stable/reference/generated/numpy.ndarray.to_device.html [Back]  [Original]

numpy.ndarray.to_device — NumPy v2.5 Manual
Back to top
Search the docs ...:

numpy.ndarray.to_device#

method

ndarray.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.

Parameters:
devicecpu

Must be "cpu".

streamNone, optional

Currently unsupported.

Returns:
outSelf

Returns the same array.


Web Proxy Viewer  |  New URL  |  Original Page