-
By default, arrays are created uncommitted. This is a very practical state as we can use them whatever the sharding of the other arrays. Is there a way to go back to this state once an array has been committed? The workaround I found was to use numpy as an intermediate step (committed array -> numpy array -> jax numpy array). It's kind of a A simple (useless) example where this could be useful:
In this example,
I get the obvious error |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Going to numpy and then jnp.asarray is the best way to do this. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the confirmation ! |
Beta Was this translation helpful? Give feedback.
Going to numpy and then jnp.asarray is the best way to do this.