numpy.__array_namespace_info__.devices#

method

__array_namespace_info__.devices()[source]#

The devices supported by NumPy.

For NumPy, this always returns ['cpu'].

Returns:
deviceslist of str

The devices supported by NumPy.

Examples

>>> info = np.__array_namespace_info__()
>>> info.devices()
['cpu']