Skip to content

Commit 3b2cb40

Browse files
Update cython docstrings
1 parent fbb3706 commit 3b2cb40

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

dpnp/tensor/_dlpack.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1086,7 +1086,7 @@ def from_dlpack(x, /, *, device=None, copy=None):
10861086
.. code-block:: python
10871087
10881088
import dpctl
1089-
import dpctl_ext.tensor as dpt
1089+
import dpnp.tensor as dpt
10901090
10911091
class Container:
10921092
"Helper class implementing `__dlpack__` protocol"

dpnp/tensor/_usmarray.pyx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ cdef class usm_ndarray:
465465
466466
.. code-block:: python
467467
468-
from dpctl_ext import tensor
468+
from dpnp import tensor
469469
470470
x = tensor.ones((3, 10, 7))
471471
y = tensor.flip(x[:, 1::2], axis=1)
@@ -659,7 +659,7 @@ cdef class usm_ndarray:
659659
660660
.. code-block:: python
661661
662-
from dpctl_ext import tensor
662+
from dpnp import tensor
663663
664664
x = tensor.arange(899)
665665
x.shape = (29, 31)
@@ -764,7 +764,7 @@ cdef class usm_ndarray:
764764
765765
.. code-block:: python
766766
767-
from dpctl_ext import tensor
767+
from dpnp import tensor
768768
769769
x = tensor.zeros((20, 30))
770770
xv = x[10:, :15]
@@ -877,7 +877,7 @@ cdef class usm_ndarray:
877877
878878
.. code-block:: python
879879
880-
>>> from dpctl_ext import tensor
880+
>>> from dpnp import tensor
881881
>>> x = tensor.ones(10)
882882
>>> x.device
883883
Device(level_zero:gpu:0)
@@ -928,7 +928,7 @@ cdef class usm_ndarray:
928928
929929
.. code-block:: python
930930
931-
from dpctl_ext import tensor
931+
from dpnp import tensor
932932
933933
# Create complex array from
934934
# arrays of real and imaginary parts
@@ -957,7 +957,7 @@ cdef class usm_ndarray:
957957
958958
.. code-block:: python
959959
960-
from dpctl_ext import tensor
960+
from dpnp import tensor
961961
962962
# Reset imaginary part of complex array
963963
@@ -1049,7 +1049,7 @@ cdef class usm_ndarray:
10491049
.. code-block:: python
10501050
10511051
import dpctl
1052-
import dpctl_ext.tensor as dpt
1052+
import dpnp.tensor as dpt
10531053
10541054
x = dpt.full(10**6, 2, dtype="int64")
10551055
q_prof = dpctl.SyclQueue(

0 commit comments

Comments
 (0)