Using a HashableArrayWrapper inside JIT'ted function fails #111
Unanswered
srijaniiserprinceton
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This is the same as the question I posted in the JAX discussion forum. But since the source code is the same as that found in this script on JAX sampler by @rlouf , I thought it might be more relevant to post it here as well.
I am still in the process of learning how to think in JAX. I have been using a
HashableArrayWrapperto pass arrays as static arguments to functions along the lines of this answer. This was working for me quite well. But for some reason that I don't quite understand, it has been failing in this script. This collab script should be accessible by anyone.I decorate the function
calc_rad_from_coorwithgnool_jit(that lets me pass hashable arrays as static arguments) which is called from within the functionmodel.Note that
modelis called from within anotherjax.jitted functionrw_metropolis_kernel.I have, in the past used
gnool_jitted functions withinjax.jitted functions but it had worked. Not sure what is happening here. :(Beta Was this translation helpful? Give feedback.
All reactions