Switching computation between CPU and GPU inside a JIT-ed function #11240
-
I have one small function, say I naively assumed that if I specify the GPU backend globally with ValueError: Outer-jit backend specification cuda must match explicit inner-jit backend specification cpu. Is there a way to get around this problem? Do I have to manually transfer the arrays using Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Check this: https://jax.readthedocs.io/en/latest/jax.experimental.host_callback.html |
Beta Was this translation helpful? Give feedback.
-
Since the above function is now deprecated, what is the optimum way to execute part of the |
Beta Was this translation helpful? Give feedback.
Check this: https://jax.readthedocs.io/en/latest/jax.experimental.host_callback.html