Skip to content

Remove dlpark dependency and implement DLPack directly #37

@isPANN

Description

@isPANN

Background

The dlpark crate (used for DLPack tensor interop) uses PyO3's deprecated IntoPy trait, causing deprecation warnings:

warning: use of deprecated method `pyo3::IntoPy::into_py`: `IntoPy` is going to be replaced by `IntoPyObject`.

Rationale for Removal

  • dlpark is maintained by an individual developer
  • No guarantee of timely updates to PyO3 0.23+ API
  • DLPack protocol is straightforward enough to implement directly

Plan

  1. Implement DLPack capsule creation using PyO3's PyCapsule API directly
  2. Remove dlpark from dependencies
  3. Maintain zero-copy GPU tensor interop with PyTorch

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions