Asynchronous Dispatch
This lesson will introduce asynchronous dispatch.
We'll cover the following...
We'll cover the following...
Introductory example
We have already talked about the JIT’s usefulness. Now let’s take a look at the difference in speed between a JIT and a normal function:
If we run the above code on the CPU, the output should be fairly straightforward.
If we run it on GPU/TPU, on the other hand, the output is quite astonishing. The JAX JIT function is almost three times faster than the “non-JIT” function ...