-
Is it possible to execute a
(Using The Thank you for your help! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
A On the other hand, your host-side function is just a Python function, which could call out to any parallel computation framework that the host Python process has access to (including another JAX process, python multiprocessing, pytorch, dask, etc.), so in that sense you could execute a Does that make sense? |
Beta Was this translation helpful? Give feedback.
A
pure_callback
is a function that executes on the host at runtime, and host execution occurs in a single CPU process. So in that sense, no, you cannot execute apure_callback
in parallel.On the other hand, your host-side function is just a Python function, which could call out to any parallel computation framework that the host Python process has access to (including another JAX process, python multiprocessing, pytorch, dask, etc.), so in that sense you could execute a
pure_callback
in parallel, but it has nothing to do withpure_callback
per se.Does that make sense?