Skip to content

Commit c588d36

Browse files
author
github-actions[doc-deploy-bot]
committed
Docs for pull request 2098
1 parent 949c865 commit c588d36

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pulls/2098/_modules/dpctl/tensor/_set_functions.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,9 @@ <h1>Source code for dpctl.tensor._set_functions</h1><div class="highlight"><pre>
15371537

15381538
<span class="k">if</span> <span class="n">test_dt</span> <span class="o">!=</span> <span class="n">dt</span><span class="p">:</span>
15391539
<span class="c1"># copy into C-contiguous memory, because the array will be flattened</span>
1540-
<span class="n">test_buf</span> <span class="o">=</span> <span class="n">dpt</span><span class="o">.</span><span class="n">empty_like</span><span class="p">(</span><span class="n">test_arr</span><span class="p">,</span> <span class="n">dtype</span><span class="o">=</span><span class="n">dt</span><span class="p">,</span> <span class="n">order</span><span class="o">=</span><span class="s2">&quot;C&quot;</span><span class="p">)</span>
1540+
<span class="n">test_buf</span> <span class="o">=</span> <span class="n">dpt</span><span class="o">.</span><span class="n">empty_like</span><span class="p">(</span>
1541+
<span class="n">test_arr</span><span class="p">,</span> <span class="n">dtype</span><span class="o">=</span><span class="n">dt</span><span class="p">,</span> <span class="n">order</span><span class="o">=</span><span class="s2">&quot;C&quot;</span><span class="p">,</span> <span class="n">usm_type</span><span class="o">=</span><span class="n">res_usm_type</span>
1542+
<span class="p">)</span>
15411543
<span class="n">ht_ev</span><span class="p">,</span> <span class="n">ev</span> <span class="o">=</span> <span class="n">_copy_usm_ndarray_into_usm_ndarray</span><span class="p">(</span>
15421544
<span class="n">src</span><span class="o">=</span><span class="n">test_arr</span><span class="p">,</span> <span class="n">dst</span><span class="o">=</span><span class="n">test_buf</span><span class="p">,</span> <span class="n">sycl_queue</span><span class="o">=</span><span class="n">exec_q</span><span class="p">,</span> <span class="n">depends</span><span class="o">=</span><span class="n">dep_evs</span>
15431545
<span class="p">)</span>

pulls/2098/objects.inv

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)