Skip to content

Wrap 3rd party memory as jax.numpy.array? #27114

Answered by pearu
bkkgbkjb asked this question in Q&A
Discussion options

You must be logged in to vote

to_dlpack is a legacy DLPack interface and its usage should be deprecated.

For wrapping a 3rd party dlpack-compatible array object obj as JAX array, use jax.numpy.from_dlpack(obj).

For wrapping a JAX array arr as a 3rd party array object, use <thirdparty-library>.from_dlpack(arr).

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@bkkgbkjb
Comment options

@pearu
Comment options

@bkkgbkjb
Comment options

@pearu
Comment options

Answer selected by bkkgbkjb
@bkkgbkjb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants