dmlc/dlpack

common in-memory tensor structure

What it solves

DLPack provides a standardized, open in-memory tensor structure. This solves the problem of tensors being locked into specific deep learning frameworks, which makes it difficult to share operators or swap backend implementations across different libraries.

How it works

Instead of implementing its own tensors or operators, DLPack acts as a common bridge. It defines a standardized way to represent tensors in memory so that different frameworks can exchange data without needing complex conversions or redundant copies.

Who it’s for

It is designed for developers of deep learning frameworks and vendor-level operator implementations who need to share tensors and operators across different software ecosystems.

Highlights

  • Standardized in-memory tensor structure for cross-framework sharing.
  • Simplifies the wrapping of vendor-level operator implementations.
  • Allows for quick swapping of backend implementations, such as different BLAS versions.
  • Enables final users to mix and match operators from different frameworks.

Related

  • Project
  • Project
  • Project
  • Project
  • Project