@@ -54,7 +54,7 @@ def _isdtype_impl(dtype, kind):
54
54
55
55
class Info :
56
56
"""
57
- namespace returned by `__array_namespace_info__()`
57
+ namespace returned by `` __array_namespace_info__()` `
58
58
"""
59
59
60
60
def __init__ (self ):
@@ -82,13 +82,13 @@ def capabilities(self):
82
82
"""
83
83
capabilities()
84
84
85
- Returns a dictionary of `dpctl`'s capabilities.
85
+ Returns a dictionary of `` dpctl` `'s capabilities.
86
86
87
87
Returns:
88
88
dict:
89
- dictionary of `dpctl`'s capabilities
90
- - `boolean_indexing`: bool
91
- - `data_dependent_shapes`: bool
89
+ dictionary of `` dpctl` `'s capabilities
90
+ - ``" boolean_indexing"` `: bool
91
+ - `` data_dependent_shapes"` `: bool
92
92
"""
93
93
return self ._capabilities .copy ()
94
94
@@ -104,25 +104,26 @@ def default_dtypes(self, *, device=None):
104
104
"""
105
105
default_dtypes(*, device=None)
106
106
107
- Returns a dictionary of default data types for `device`.
107
+ Returns a dictionary of default data types for `` device` `.
108
108
109
109
Args:
110
- device (Optional[dpctl.SyclDevice, dpctl.SyclQueue ,
111
- dpctl.tensor.Device]):
110
+ device (Optional[:class:` dpctl.SyclDevice` ,
111
+ :class:` dpctl.SyclQueue`, :class:`dpctl. tensor.Device` ]):
112
112
array API concept of device used in getting default data types.
113
- `device` can be `None` (in which case the default device is
114
- used), an instance of :class:`dpctl.SyclDevice` corresponding
113
+ `` device`` can be `` None`` (in which case the default device
114
+ is used), an instance of :class:`dpctl.SyclDevice` corresponding
115
115
to a non-partitioned SYCL device, an instance of
116
- :class:`dpctl.SyclQueue`, or a `Device` object returned by
117
- :attr:`dpctl.tensor.usm_array.device`. Default: `None`.
116
+ :class:`dpctl.SyclQueue`, or a :class:`dpctl.tensor.Device`
117
+ object returned by :attr:`dpctl.tensor.usm_ndarray.device`.
118
+ Default: ``None``.
118
119
119
120
Returns:
120
121
dict:
121
- a dictionary of default data types for `device`
122
- - `real floating`: dtype
123
- - `complex floating`: dtype
124
- - `integral`: dtype
125
- - `indexing`: dtype
122
+ a dictionary of default data types for `` device` `
123
+ - ``" real floating"` `: dtype
124
+ - ``" complex floating"` `: dtype
125
+ - ``" integral"` `: dtype
126
+ - ``" indexing"` `: dtype
126
127
"""
127
128
if device is None :
128
129
device = dpctl .select_default_device ()
@@ -139,8 +140,8 @@ def dtypes(self, *, device=None, kind=None):
139
140
"""
140
141
dtypes(*, device=None, kind=None)
141
142
142
- Returns a dictionary of all Array API data types of a specified `kind`
143
- supported by `device`
143
+ Returns a dictionary of all Array API data types of a specified
144
+ ``kind`` supported by `` device` `
144
145
145
146
This dictionary only includes data types supported by the array API.
146
147
@@ -149,37 +150,43 @@ def dtypes(self, *, device=None, kind=None):
149
150
[array_api]: https://data-apis.org/array-api/latest/
150
151
151
152
Args:
152
- device (Optional[dpctl.SyclDevice, dpctl.SyclQueue ,
153
- dpctl.tensor.Device, str]):
153
+ device (Optional[:class:` dpctl.SyclDevice` ,
154
+ :class:` dpctl.SyclQueue`, :class:`dpctl. tensor.Device` , str]):
154
155
array API concept of device used in getting default data types.
155
- `device` can be `None` (in which case the default device is
156
+ `` device`` can be `` None` ` (in which case the default device is
156
157
used), an instance of :class:`dpctl.SyclDevice` corresponding
157
158
to a non-partitioned SYCL device, an instance of
158
- :class:`dpctl.SyclQueue`, or a `Device` object returned by
159
- :attr:`dpctl.tensor.usm_array.device`. Default: `None`.
159
+ :class:`dpctl.SyclQueue`, or a :class:`dpctl.tensor.Device`
160
+ object returned by :attr:`dpctl.tensor.usm_ndarray.device`.
161
+ Default: ``None``.
160
162
161
163
kind (Optional[str, Tuple[str, ...]]):
162
164
data type kind.
163
- - if `kind` is `None`, returns a dictionary of all data types
164
- supported by `device`
165
- - if `kind` is a string, returns a dictionary containing the
166
- data types belonging to the data type kind specified.
165
+
166
+ - if ``kind`` is ``None``, returns a dictionary of all data
167
+ types supported by `device`
168
+ - if ``kind`` is a string, returns a dictionary containing the
169
+ data types belonging to the data type kind specified.
167
170
Supports:
168
- - "bool"
169
- - "signed integer"
170
- - "unsigned integer"
171
- - "integral"
172
- - "real floating"
173
- - "complex floating"
174
- - "numeric"
175
- - if `kind` is a tuple, the tuple represents a union of `kind`
176
- strings, and returns a dictionary containing data types
177
- corresponding to the-specified union.
171
+
172
+ - ``"bool"``
173
+ - ``"signed integer"``
174
+ - ``"unsigned integer"``
175
+ - ``"integral"``
176
+ - ``"real floating"``
177
+ - ``"complex floating"``
178
+ - ``"numeric"``
179
+
180
+ - if ``kind`` is a tuple, the tuple represents a union of
181
+ ``kind`` strings, and returns a dictionary containing data
182
+ types corresponding to the-specified union.
183
+
178
184
Default: `None`.
179
185
180
186
Returns:
181
187
dict:
182
- a dictionary of the supported data types of the specified `kind`
188
+ a dictionary of the supported data types of the specified
189
+ ``kind``
183
190
"""
184
191
if device is None :
185
192
device = dpctl .select_default_device ()
0 commit comments