Skip to content

Commit 9087bbf

Browse files
Update examples in dpctl_ext.tensor cython files
1 parent fe3b2db commit 9087bbf

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

dpctl_ext/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.tensor as dpt
1089+
import dpctl_ext.tensor as dpt
10901090
10911091
class Container:
10921092
"Helper class implementing `__dlpack__` protocol"

dpctl_ext/tensor/_usmarray.pyx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ cdef class usm_ndarray:
466466
467467
.. code-block:: python
468468
469-
from dpctl import tensor
469+
from dpctl_ext import tensor
470470
471471
x = tensor.ones((3, 10, 7))
472472
y = tensor.flip(x[:, 1::2], axis=1)
@@ -660,7 +660,7 @@ cdef class usm_ndarray:
660660
661661
.. code-block:: python
662662
663-
from dpctl import tensor
663+
from dpctl_ext import tensor
664664
665665
x = tensor.arange(899)
666666
x.shape = (29, 31)
@@ -765,7 +765,7 @@ cdef class usm_ndarray:
765765
766766
.. code-block:: python
767767
768-
from dpctl import tensor
768+
from dpctl_ext import tensor
769769
770770
x = tensor.zeros((20, 30))
771771
xv = x[10:, :15]
@@ -878,7 +878,7 @@ cdef class usm_ndarray:
878878
879879
.. code-block:: python
880880
881-
>>> from dpctl import tensor
881+
>>> from dpctl_ext import tensor
882882
>>> x = tensor.ones(10)
883883
>>> x.device
884884
Device(level_zero:gpu:0)
@@ -929,7 +929,7 @@ cdef class usm_ndarray:
929929
930930
.. code-block:: python
931931
932-
from dpctl import tensor
932+
from dpctl_ext import tensor
933933
934934
# Create complex array from
935935
# arrays of real and imaginary parts
@@ -958,7 +958,7 @@ cdef class usm_ndarray:
958958
959959
.. code-block:: python
960960
961-
from dpctl import tensor
961+
from dpctl_ext import tensor
962962
963963
# Reset imaginary part of complex array
964964
@@ -1050,7 +1050,7 @@ cdef class usm_ndarray:
10501050
.. code-block:: python
10511051
10521052
import dpctl
1053-
import dpctl.tensor as dpt
1053+
import dpctl_ext.tensor as dpt
10541054
10551055
x = dpt.full(10**6, 2, dtype="int64")
10561056
q_prof = dpctl.SyclQueue(

0 commit comments

Comments
 (0)