@@ -107,8 +107,7 @@ def default_dtypes(self, *, device=None):
107
107
Returns a dictionary of default data types for ``device``.
108
108
109
109
Args:
110
- device (Optional[:class:`dpctl.SyclDevice`,
111
- :class:`dpctl.SyclQueue`, :class:`dpctl.tensor.Device`]):
110
+ device (Optional[:class:`dpctl.SyclDevice`, :class:`dpctl.SyclQueue`, :class:`dpctl.tensor.Device`]):
112
111
array API concept of device used in getting default data types.
113
112
``device`` can be ``None`` (in which case the default device
114
113
is used), an instance of :class:`dpctl.SyclDevice` corresponding
@@ -119,7 +118,8 @@ def default_dtypes(self, *, device=None):
119
118
120
119
Returns:
121
120
dict:
122
- a dictionary of default data types for ``device``
121
+ a dictionary of default data types for ``device``:
122
+
123
123
- ``"real floating"``: dtype
124
124
- ``"complex floating"``: dtype
125
125
- ``"integral"``: dtype
@@ -143,15 +143,12 @@ def dtypes(self, *, device=None, kind=None):
143
143
Returns a dictionary of all Array API data types of a specified
144
144
``kind`` supported by ``device``
145
145
146
- This dictionary only includes data types supported by the array API.
147
-
148
- See [array API](array_api).
149
-
150
- [array_api]: https://data-apis.org/array-api/latest/
146
+ This dictionary only includes data types supported by the
147
+ `Python Array API <https://data-apis.org/array-api/latest/>`_
148
+ specification.
151
149
152
150
Args:
153
- device (Optional[:class:`dpctl.SyclDevice`,
154
- :class:`dpctl.SyclQueue`, :class:`dpctl.tensor.Device`, str]):
151
+ device (Optional[:class:`dpctl.SyclDevice`, :class:`dpctl.SyclQueue`, :class:`dpctl.tensor.Device`, str]):
155
152
array API concept of device used in getting default data types.
156
153
``device`` can be ``None`` (in which case the default device is
157
154
used), an instance of :class:`dpctl.SyclDevice` corresponding
@@ -167,6 +164,7 @@ def dtypes(self, *, device=None, kind=None):
167
164
types supported by `device`
168
165
- if ``kind`` is a string, returns a dictionary containing the
169
166
data types belonging to the data type kind specified.
167
+
170
168
Supports:
171
169
172
170
- ``"bool"``
0 commit comments