-
Dear thx for accelerating array operations. I am wondering if there is an option to switch back the type from jnp.asarray().to_numpy() or so. That would be helpful to avoid TypeError: Expect the data to ImageInput to be numpy.ndarray or tf.data.Dataset,
but got <class 'jaxlib.xla_extension.DeviceArray'>. |
Beta Was this translation helpful? Give feedback.
Answered by
mattjj
May 3, 2022
Replies: 1 comment 1 reply
-
Thanks for the question! Just call Does that answer your question? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Anselmoo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the question!
Just call
np.array(jax_array)
wherenp
is fromimport numpy as np
.Does that answer your question?