-
Hi all I wonder if I could wrap an external, 3rd party memory chunks as For example, certain simulation platform like I wonder if we could do the simliar thing for JAX? I know BTW, I don't need to differentiate through this array. So it's purely an interface between front-end dl library and back-end simulation platform. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
The main mechanism JAX provides for this is via |
Beta Was this translation helpful? Give feedback.
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, usejax.numpy.from_dlpack(obj)
.For wrapping a JAX array
arr
as a 3rd party array object, use<thirdparty-library>.from_dlpack(arr)
.