__dlpack_c_exchange_api__¶
- property array.__dlpack_c_exchange_api__: PyCapsule¶
Object containing the DLPack C-API exchange API struct.
An optional static array type attribute stored in
type(array_instance).__dlpack_c_exchange_api__that can be used to retrieve the DLPack C-API exchange API struct in DLPack 1.3 or later to speed up exchange of array data at the C extension level without going through Python-level exchange. See Data interchange mechanisms section for more details.- Returns:
out (PyCapsule) – The PyCapsule object containing the DLPack C-API exchange API struct.
Note
This is a static global object shared across all the array instances of the same type. It can be queried through the
type(array_instance).__dlpack_c_exchange_api__attribute.