You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
an object representing SYCL USM allocation and implementing
804
804
<codeclass="docutils literal notranslate"><spanclass="pre">__sycl_usm_array_interface__</span></code> protocol, an instance
805
-
of <aclass="reference external" href="https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v2.3)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">numpy.ndarray</span></code></a>, an object supporting Python buffer
805
+
of <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">numpy.ndarray</span></code>, an object supporting Python buffer
806
806
protocol, a Python scalar, or a (possibly nested) sequence of
807
807
Python scalars.</p></li>
808
808
<li><p><strong>dtype</strong> (<em>data type</em><em>, </em><em>optional</em>) – output array data type. If <codeclass="docutils literal notranslate"><spanclass="pre">dtype</span></code> is
<li><p><strong>order</strong> (<em>{"C"</em><em>, </em><em>"F"</em><em>, </em><em>"A"</em><em>, </em><em>"K"}</em><em>, </em><em>optional</em>) – Controls memory layout of the resulting array if a copy
807
807
is returned.</p></li>
808
808
<li><p><strong>casting</strong> (<em>{'no'</em><em>, </em><em>'equiv'</em><em>, </em><em>'safe'</em><em>, </em><em>'same_kind'</em><em>, </em><em>'unsafe'}</em><em>, </em><em>optional</em>) – Controls what kind of data casting may occur. Please see
809
-
<aclass="reference external" href="https://numpy.org/doc/stable/reference/generated/numpy.ndarray.astype.html#numpy.ndarray.astype" title="(in NumPy v2.3)"><codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">numpy.ndarray.astype()</span></code></a> for description of casting modes.</p></li>
809
+
<codeclass="xref py py-meth docutils literal notranslate"><spanclass="pre">numpy.ndarray.astype()</span></code> for description of casting modes.</p></li>
810
810
<li><p><strong>copy</strong> (<aclass="reference external" href="https://docs.python.org/3/library/functions.html#bool" title="(in Python v3.14)"><em>bool</em></a><em>, </em><em>optional</em>) – By default, <cite>astype</cite> always returns a newly allocated array.
811
811
If this keyword is set to <cite>False</cite>, a view of the input array
<li><p><strong>x</strong> (<aclass="reference internal" href="dpctl.tensor.usm_ndarray.html#dpctl.tensor.usm_ndarray" title="dpctl.tensor.usm_ndarray"><em>usm_ndarray</em></a>) – Input array from which to derive the output array shape.</p></li>
803
803
<li><p><strong>dtype</strong> (<em>optional</em>) – data type of the array. Can be a typestring,
Raises <aclass="reference external" href="https://docs.python.org/3/library/exceptions.html#TypeError" title="(in Python v3.14)"><codeclass="xref py py-exc docutils literal notranslate"><spanclass="pre">TypeError</span></code></a> if <codeclass="docutils literal notranslate"><spanclass="pre">k</span></code> is not an integer.
a <aclass="reference external" href="https://intelpython.github.io/dpnp/reference/generated/dpnp.dtype.html#dpnp.dtype" title="(in Data Parallel Extension for NumPy v0.20.0dev0+22.gda3cac347bf)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">numpy.dtype</span></code></a> object, <codeclass="xref py py-mod docutils literal notranslate"><spanclass="pre">numpy</span></code> char string, or
812
812
a NumPy scalar type. Default: <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code></p></li>
813
813
<li><p><strong>order</strong> (<em>"C"</em><em> or </em><em>"F"</em>) – memory layout for the array. Default: <codeclass="docutils literal notranslate"><spanclass="pre">"C"</span></code></p></li>
814
814
<li><p><strong>device</strong> (<em>optional</em>) – array API concept of device where the output array
instance from a Python object <codeclass="docutils literal notranslate"><spanclass="pre">x</span></code> that implements <codeclass="docutils literal notranslate"><spanclass="pre">__dlpack__</span></code> protocol.</p>
depends on where the data backing up input object <codeclass="docutils literal notranslate"><spanclass="pre">x</span></code> resides.
870
870
If it resides in a USM allocation on a SYCL device, the
871
871
type <aclass="reference internal" href="dpctl.tensor.usm_ndarray.html#dpctl.tensor.usm_ndarray" title="dpctl.tensor.usm_ndarray"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">dpctl.tensor.usm_ndarray</span></code></a> is returned, otherwise if it
872
-
resides on <codeclass="docutils literal notranslate"><spanclass="pre">"kDLCPU"</span></code> device the type is <aclass="reference external" href="https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray" title="(in NumPy v2.3)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">numpy.ndarray</span></code></a>,
872
+
resides on <codeclass="docutils literal notranslate"><spanclass="pre">"kDLCPU"</span></code> device the type is <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">numpy.ndarray</span></code>,
<li><p><strong>device</strong> (<aclass="reference external" href="https://docs.python.org/3/library/functions.html#object" title="(in Python v3.14)"><em>object</em></a>) – array API specification of device where the
804
804
output array is created. Device can be specified by
<li><p><strong>shape</strong> (<aclass="reference external" href="https://docs.python.org/3/library/stdtypes.html#tuple" title="(in Python v3.14)"><em>tuple</em></a>) – Dimensions of the array to be created.</p></li>
a <aclass="reference external" href="https://intelpython.github.io/dpnp/reference/generated/dpnp.dtype.html#dpnp.dtype" title="(in Data Parallel Extension for NumPy v0.20.0dev0+22.gda3cac347bf)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">numpy.dtype</span></code></a> object, <codeclass="xref py py-mod docutils literal notranslate"><spanclass="pre">numpy</span></code> char string,
806
806
or a NumPy scalar type. Default: <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code></p></li>
807
807
<li><p><strong>order</strong> (<em>"C"</em><em>, or </em><em>"F"</em>) – memory layout for the array. Default: <codeclass="docutils literal notranslate"><spanclass="pre">"C"</span></code></p></li>
808
808
<li><p><strong>device</strong> (<em>optional</em>) – array API concept of device where the output array
Copy file name to clipboardExpand all lines: pulls/2172/api_reference/dpctl/generated/dpctl.tensor.full_like.html
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -803,7 +803,7 @@ <h1>dpctl.tensor.full_like<a class="headerlink" href="#dpctl-tensor-full-like" t
803
803
shape.</p></li>
804
804
<li><p><strong>fill_value</strong> – the value to fill output array with</p></li>
805
805
<li><p><strong>dtype</strong> (<em>optional</em>) – data type of the array. Can be typestring,
806
-
a <aclass="reference external" href="https://numpy.org/doc/stable/reference/generated/numpy.dtype.html#numpy.dtype" title="(in NumPy v2.3)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">numpy.dtype</span></code></a> object, <aclass="reference external" href="https://numpy.org/doc/stable/reference/index.html#module-numpy" title="(in NumPy v2.3)"><codeclass="xref py py-mod docutils literal notranslate"><spanclass="pre">numpy</span></code></a> char string, or a
806
+
a <aclass="reference external" href="https://intelpython.github.io/dpnp/reference/generated/dpnp.dtype.html#dpnp.dtype" title="(in Data Parallel Extension for NumPy v0.20.0dev0+22.gda3cac347bf)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">numpy.dtype</span></code></a> object, <codeclass="xref py py-mod docutils literal notranslate"><spanclass="pre">numpy</span></code> char string, or a
807
807
NumPy scalar type. If <codeclass="docutils literal notranslate"><spanclass="pre">dtype</span></code> is <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code>, the output array data
808
808
type is inferred from <codeclass="docutils literal notranslate"><spanclass="pre">x</span></code>. Default: <codeclass="docutils literal notranslate"><spanclass="pre">None</span></code></p></li>
809
809
<li><p><strong>order</strong> (<em>"C"</em><em>, </em><em>"F"</em><em>, </em><em>"A"</em><em>, or </em><em>"K"</em>) – memory layout for the array. Default: <codeclass="docutils literal notranslate"><spanclass="pre">"K"</span></code></p></li>
0 commit comments