dmlc/dlpack
common in-memory tensor structure observed · 2026-08-28
Health v2 · maintenance only
66/100
- Activity 97
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3477
- days_rel: 723
- days_push: 22
- n_releases_24m: 1
Adoption not part of the score
1242 stars · 168 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
DLPack is a minimal, stable open in-memory tensor structure defined as a single C ABI header, enabling zero-copy tensor exchange between deep learning frameworks and array libraries. It is a widely adopted standard supported by NumPy, PyTorch, TensorFlow, JAX, CuPy, TVM, and others across CPU, CUDA, ROCm, Vulkan, Metal, and WebGPU devices.
Use cases
- share tensors between pytorch and tensorflow without copying
- wrap vendor gpu operator libraries in a framework-agnostic way
- exchange ndarrays between numpy and cupy across devices
- build a compiler backend that consumes tensors from any framework
- swap blas or tensor backend implementations at runtime
- expose a c-compatible tensor interface from another language
When to choose
- you need zero-copy tensor interchange between frameworks or languages
- you target multiple hardware backends (cuda, rocm, vulkan, metal, webgpu)
- you want a minimal, stable, allocator-free C ABI standard with wide adoption
When to avoid
- you need a full tensor library with ops and allocators - dlpack deliberately provides neither
- you need rich layout features beyond row-major with strides, or reference-counted ownership semantics beyond its scope
Facets
library · maturity stable
serialization sdk deep-learning machine-learning gpu-computing developer-tools cpp cross-platform python tensor-interoperability c-abi header-only zero-copy array-exchange gpu
2 sources
- readme: https://github.com/dmlc/dlpack · fetched 2026-08-28 · a205367779a4
- homepage: https://dmlc.github.io/dlpack/latest · fetched 2026-08-29 · 4b24765a13c4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dmlc/dlpack | main | 66 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem