Using a HashableArrayWrapper inside JIT'ted function fails #8439
-
I am still in the process of learning how to think in JAX. I have been using a I decorate the function
Note that I have, in the past used |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 17 replies
-
I don't entirely understand the motivation for your |
Beta Was this translation helpful? Give feedback.
I don't entirely understand the motivation for your
gnool_jit
, but within a jit-compiled function, the result of something likex_model = r_model * np.cos(theta_d)
is not an array, it is a tracer. When you pass this tracer to a function that expects it to be a static array, the result will probably not work as expected.