Skip to content

TracerArrayConversionError: The numpy.ndarray conversion method __array__() was called on traced array with shape float32[10000]. #21279

Answered by dfm
ciri1998 asked this question in Q&A
Discussion options

You must be logged in to vote

I'm not very familiar with this specific use case, but if your x and y points are on a regular grid, perhaps you could use jax.scipy.interpolate.RegularGridInterpolator (source). I noticed that this doesn't seem to be included in the generated API docs, but it should be fine to use it if it works for you!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ciri1998
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants