Skip to content

Commit 795fbba

Browse files
author
array-api-bot
committed
Deploy: a902944
1 parent 864f12f commit 795fbba

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

draft/API_specification/generated/array_api.array.to_device.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,11 @@ <h1 id="api-specification-generated-array-api-array-to-device--page-root">to_dev
470470
<dd class="field-even"><p><strong>out</strong> (<em>array</em>) – an array with the same data and data type as <code class="docutils literal notranslate"><span class="pre">self</span></code> and located on the specified <code class="docutils literal notranslate"><span class="pre">device</span></code>.</p>
471471
</dd>
472472
</dl>
473-
<div class="admonition note">
474-
<p class="admonition-title">Note</p>
475-
<p>If <code class="docutils literal notranslate"><span class="pre">stream</span></code> is given, the copy operation should be enqueued on the provided <code class="docutils literal notranslate"><span class="pre">stream</span></code>; otherwise, the copy operation should be enqueued on the default stream/queue. Whether the copy is performed synchronously or asynchronously is implementation-dependent. Accordingly, if synchronization is required to guarantee data safety, this must be clearly explained in a conforming library’s documentation.</p>
476-
</div>
473+
<p class="rubric">Notes</p>
474+
<ul class="simple">
475+
<li><p>When a provided <code class="docutils literal notranslate"><span class="pre">device</span></code> object corresponds to the same device on which an array instance resides, implementations may choose to perform an explicit copy or return <code class="docutils literal notranslate"><span class="pre">self</span></code>.</p></li>
476+
<li><p>If <code class="docutils literal notranslate"><span class="pre">stream</span></code> is provided, the copy operation should be enqueued on the provided <code class="docutils literal notranslate"><span class="pre">stream</span></code>; otherwise, the copy operation should be enqueued on the default stream/queue. Whether the copy is performed synchronously or asynchronously is implementation-dependent. Accordingly, if synchronization is required to guarantee data safety, this must be clearly explained in a conforming array library’s documentation.</p></li>
477+
</ul>
477478
</dd></dl>
478479
</section>
479480

draft/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)