File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
src/array_api_stubs/_draft Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -92,8 +92,9 @@ DLPack C Exchange API
9292DLPack 1.3 introduces a C-level exchange API that can be used to speed up
9393data exchange between arrays at the C-extension level. This API is available via
9494the ``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.
9596For 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
9798most cases, then start to use the C-level ``__dlpack_c_exchange_api__ `` for performance critical cases.
9899
99100
Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments