@@ -247,12 +247,15 @@ def astype(x, dtype, /, *, order="K", casting="unsafe", copy=True, device=None):
247247 returned; otherwise, a newly allocated array must be returned.
248248
249249 Default: ``True``.
250- device : {None, string, SyclDevice, SyclQueue}, optional
251- An array API specification of device where the output array is created.
252- Device can be specified by a filter selector string, an instance of
253- :class:`dpctl.SyclDevice`, an instance of :class:`dpctl.SyclQueue`, or
254- an instance of :class:`dpctl.tensor.Device`. If the value is ``None``,
255- returned array is created on the same device as `x`.
250+ device : {None, string, SyclDevice, SyclQueue, Device}, optional
251+ An array API concept of device where the output array is created.
252+ `device` can be ``None``, a oneAPI filter selector string, an instance
253+ of :class:`dpctl.SyclDevice` corresponding to a non-partitioned SYCL
254+ device, an instance of :class:`dpctl.SyclQueue`, or a
255+ :class:`dpctl.tensor.Device` object returned by
256+ :attr:`dpnp.ndarray.device`.
257+ If the value is ``None``, returned array is created on the same device
258+ as `x`.
256259
257260 Default: ``None``.
258261
@@ -310,12 +313,15 @@ def as_usm_ndarray(a, dtype=None, device=None, usm_type=None, sycl_queue=None):
310313 considering Promotion Type Rule and device capabilities when necessary).
311314
312315 Default: ``None``.
313- device : {None, string, SyclDevice, SyclQueue}, optional
314- An array API specification of device where the output array is created.
315- Device can be specified by a filter selector string, an instance of
316- :class:`dpctl.SyclDevice`, an instance of :class:`dpctl.SyclQueue`, or
317- an instance of :class:`dpctl.tensor.Device`. If the value is ``None``,
318- returned array is created on the same device as `a`.
316+ device : {None, string, SyclDevice, SyclQueue, Device}, optional
317+ An array API concept of device where the output array is created.
318+ `device` can be ``None``, a oneAPI filter selector string, an instance
319+ of :class:`dpctl.SyclDevice` corresponding to a non-partitioned SYCL
320+ device, an instance of :class:`dpctl.SyclQueue`, or a
321+ :class:`dpctl.tensor.Device` object returned by
322+ :attr:`dpnp.ndarray.device`.
323+ If the value is ``None``, returned array is created on the same device
324+ as `a`.
319325
320326 Default: ``None``.
321327 usm_type : {None, "device", "shared", "host"}, optional
@@ -466,12 +472,14 @@ def default_float_type(device=None, sycl_queue=None):
466472
467473 Parameters
468474 ----------
469- device : {None, string, SyclDevice, SyclQueue}, optional
470- An array API specification of device where the output array is created.
471- Device can be specified by a filter selector string, an instance of
472- :class:`dpctl.SyclDevice`, an instance of :class:`dpctl.SyclQueue`, or
473- an instance of :class:`dpctl.tensor.Device`. The value ``None`` is
474- interpreted as to use a default device.
475+ device : {None, string, SyclDevice, SyclQueue, Device}, optional
476+ An array API concept of device where the output array is created.
477+ `device` can be ``None``, a oneAPI filter selector string, an instance
478+ of :class:`dpctl.SyclDevice` corresponding to a non-partitioned SYCL
479+ device, an instance of :class:`dpctl.SyclQueue`, or a
480+ :class:`dpctl.tensor.Device` object returned by
481+ :attr:`dpnp.ndarray.device`.
482+ The value ``None`` is interpreted as to use a default device.
475483
476484 Default: ``None``.
477485 sycl_queue : {None, SyclQueue}, optional
@@ -608,12 +616,14 @@ def get_normalized_queue_device(obj=None, device=None, sycl_queue=None):
608616 or to use default queue.
609617
610618 Default: ``None``.
611- device : {None, string, SyclDevice, SyclQueue}, optional
612- An array API specification of device where the output array is created.
613- Device can be specified by a filter selector string, an instance of
614- :class:`dpctl.SyclDevice`, an instance of :class:`dpctl.SyclQueue`, or
615- an instance of :class:`dpctl.tensor.Device`. The value ``None`` is
616- interpreted as to use the same device as `obj`.
619+ device : {None, string, SyclDevice, SyclQueue, Device}, optional
620+ An array API concept of device where the output array is created.
621+ `device` can be ``None``, a oneAPI filter selector string, an instance
622+ of :class:`dpctl.SyclDevice` corresponding to a non-partitioned SYCL
623+ device, an instance of :class:`dpctl.SyclQueue`, or a
624+ :class:`dpctl.tensor.Device` object returned by
625+ :attr:`dpnp.ndarray.device`.
626+ The value ``None`` is interpreted as to use the same device as `obj`.
617627
618628 Default: ``None``.
619629
0 commit comments