Skip to content

Commit cea046f

Browse files
author
array-api-bot
committed
Deploy: ba787e3
1 parent e26f213 commit cea046f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

+5
Original file line numberDiff line numberDiff line change
@@ -597,6 +597,11 @@ <h1 id="api-specification-generated-array-api-array-dlpack--page-root">__dlpack_
597597
</div>
598598
<p>This logic is also applicable to handling of the new <code class="docutils literal notranslate"><span class="pre">dl_device</span></code> and <code class="docutils literal notranslate"><span class="pre">copy</span></code>
599599
keywords.</p>
600+
<p>DLPack 1.0 added a flag to indicate that the array is read-only
601+
(<code class="docutils literal notranslate"><span class="pre">DLPACK_FLAG_BITMASK_READ_ONLY</span></code>). A consumer that does not support
602+
read-only arrays should ignore this flag (this is preferred over
603+
raising an exception; the user is then responsible for ensuring the
604+
memory isn’t modified).</p>
600605
<div class="versionchanged">
601606
<p><span class="versionmodified changed">Changed in version 2022.12: </span>Added BufferError.</p>
602607
</div>

draft/searchindex.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)