We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
default_device()
None
1 parent 18315b9 commit a4c30ebCopy full SHA for a4c30eb
src/array_api_stubs/_draft/info.py
@@ -80,11 +80,13 @@ def default_device() -> device:
80
Returns
81
-------
82
out: device
83
- an object corresponding to the default device.
+ an object (including ``None``) corresponding to the default device.
84
85
Notes
86
-----
87
88
+ - A conforming array library may return ``None`` if the default device is not predictable due to library specific device placement rules.
89
+
90
.. versionadded: 2023.12
91
"""
92
0 commit comments