Behaviour of pickling a JAX array #16308
-
I am wondering what the behaviour of pickling a JAX array is. On 10 Nov 2021, @jakevdp commented in #8494 (reply in thread):
But it seems that the behaviour has been changed. In JAX v0.4.11,
What I am trying to achieve is to save JAX arrays stored in nested namedtuples to disk. For example:
My question:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
The intended behavior of In short, as of #10659 it is expected that pickling and unpickling a JAX array will return a JAX array. |
Beta Was this translation helpful? Give feedback.
The intended behavior of
pickle
with JAX arrays is described here: https://jax.readthedocs.io/en/latest/jax.numpy.html#copying-and-serializationIn short, as of #10659 it is expected that pickling and unpickling a JAX array will return a JAX array.