rocm_jax/jax/experimental
Peter Hawkins 8b7319afe9 [JAX] Remove calls to jax.dlpack.to_dlpack(), and avoid passing DLPack capsules to jax.dlpack.from_dlpack().
to_dlpack() is not needed in the current version of the dlpack protocol. The from_dlpack() method accepts an object that implements __dlpack__(). In most cases, a JAX array can be passed directly to functions like torch.dlpack.from_dlpack(), and vice versa for other frameworks. The main exception is TensorFlow which does not implement the current protocol.

PiperOrigin-RevId: 746464890
2025-04-11 08:09:41 -07:00
..
2025-03-27 17:12:59 -07:00