Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring support for the Python specification for DLPack #37

Merged
merged 7 commits into from
Jan 29, 2024
Merged

Conversation

pabloferz
Copy link
Owner

This adds and exports a from_dlpack method that allows wrapping python arrays directly as long as they support the Python specification for DLPack.

It also provides python data structures with __dlpack__ and __dlpack_device__ attribute methods for python libraries that do not support converting DLManagedTensors bundled as PyCapsules directly.

Closes #32.

@pabloferz pabloferz force-pushed the py-share branch 3 times, most recently from 29f708c to afd4099 Compare January 28, 2024 00:28
@pabloferz pabloferz force-pushed the py-share branch 2 times, most recently from c253a0a to 896d8cf Compare January 29, 2024 04:23
@pabloferz pabloferz merged commit 2df0ba7 into main Jan 29, 2024
6 checks passed
@pabloferz pabloferz deleted the py-share branch January 29, 2024 04:57
pabloferz referenced this pull request Jan 29, 2024
[skip ci] Bump version to v0.2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error in sharing array to numpy
1 participant