Skip to content

Commit 29cd39c

Browse files
Update usm_ndarray docstrings
1 parent e2f83bc commit 29cd39c

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

dpnp/tensor/_usmarray.pyx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,13 +256,15 @@ cdef class usm_ndarray:
256256
257257
Default: ``None``.
258258
259-
``buffer`` can be ``"shared"``, ``"host"``, ``"device"`` to allocate
260-
new device memory by calling respective constructor with
261-
the specified ``buffer_ctor_kwrds``; ``buffer`` can be an
262-
instance of :class:`dpctl.memory.MemoryUSMShared`,
259+
Notes
260+
-----
261+
The ``buffer`` argument accepts string values ``"shared"``,
262+
``"host"``, or ``"device"`` to allocate new device memory by calling
263+
the respective constructor with the specified ``buffer_ctor_kwrds``.
264+
It can also be an instance of :class:`dpctl.memory.MemoryUSMShared`,
263265
:class:`dpctl.memory.MemoryUSMDevice`, or
264-
:class:`dpctl.memory.MemoryUSMHost`; ``buffer`` can also be
265-
another :class:`dpnp.tensor.usm_ndarray` instance, in which case its
266+
:class:`dpctl.memory.MemoryUSMHost`, or another
267+
:class:`dpnp.tensor.usm_ndarray` instance, in which case its
266268
underlying ``MemoryUSM*`` buffer is used.
267269
268270
"""

0 commit comments

Comments
 (0)