Skip to content

Commit fe57b42

Browse files
committed
address review comments
1 parent e605ff2 commit fe57b42

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

spec/draft/API_specification/array_object.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ Attributes
273273
array.shape
274274
array.size
275275
array.T
276+
array.__dlpack_c_exchange_api__
276277

277278
-------------------------------------------------
278279

spec/draft/design_topics/data_interchange.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,9 @@ DLPack C Exchange API
9292
DLPack 1.3 introduces a C-level exchange API that can be used to speed up
9393
data exchange between arrays at the C-extension level. This API is available via
9494
the ``type(array_instance).__dlpack_c_exchange_api__`` attribute on the array type object.
95+
This is a static global object shared across all the array instances of the same type.
9596
For more details, see the `Python specification of DLPack <https://dmlc.github.io/dlpack/latest/python_spec.html>`__
96-
We recommend consumer libraries to start first using the python level ``__dlpack__`` first which will covers
97+
We recommend consumer libraries to start first using the Python-level ``__dlpack__`` first which will covers
9798
most cases, then start to use the C-level ``__dlpack_c_exchange_api__`` for performance critical cases.
9899

99100

src/array_api_stubs/_draft/array_object.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class _array:
2121
Attributes
2222
----------
2323
__dlpack_c_exchange_api__: PyCapsule
24-
An optional static array type attribute store in ``type(array_instance).__dlpack_c_exchange_api__``
24+
An optional static array type attribute stored in ``type(array_instance).__dlpack_c_exchange_api__``
2525
that can be used to retrieve the DLPack C-API exchange API struct in DLPack 1.3 or later to speed up
2626
exchange of array data at the C extension level without going through Python-level exchange.
2727
See :ref:`data-interchange` section for more details.

0 commit comments

Comments
 (0)