-
Notifications
You must be signed in to change notification settings - Fork 160
Specify DLPack helper C APIs #74
Copy link
Copy link
Open
Description
In the recent discussions scattered everywhere, it appears that some functions should better be just implemented by DLPack so that the downstream libraries do not have to reinvent the wheels. The possibilities include
- tensor deleter (see the discussion starting Specify Python embedding of DLPack tensors #51 (comment))
- query if CPU-accessible (see Add
kDLROCMHostandkDLCUDAManaged#71 (comment)) - C APIs corresponding to
__dlpack__and__dlpack_device__in the Python Array API standard for handing streams (Standardize C interface for stream exchange #65) - C API that could be exposed as a new Python attribute
__dlpack_info__for returning API and ABI versions (and potentially more, see Future ABI compatibility #34, Add ABI version. #72)
cc: @tqchen @rgommers @seberg @eric-wieser @kkraus14 @jakirkham @hameerabbasi @vadimkantorov @oleksandr-pavlyk @szha @veritas9872
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels