dmlc / dmlc/dlpack

Specify DLPack helper C APIs

Open
#74 6 comments 8 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
1.2k
Forks
169
PR merge metrics
No merged PRs in 30d

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
1. tensor deleter (see the discussion starting https://github.com/dmlc/dlpack/issues/51#issuecomment-849794854)
2. query if CPU-accessible (see https://github.com/dmlc/dlpack/pull/71#issuecomment-849784565)
3. C APIs corresponding to `__dlpack__` and `__dlpack_device__` in the Python Array API standard for handing streams (#65)
4. C API that could be exposed as a new Python attribute `__dlpack_info__` for returning API and ABI versions (and potentially more, see #34, #72)

cc: @tqchen @rgommers @seberg @eric-wieser @kkraus14 @jakirkham @hameerabbasi @vadimkantorov @oleksandr-pavlyk @szha @veritas9872

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.