I am learning to use JAX and I have some doubts about the use of jit and vmap that I couldn't solve by reading the docs.
Does it make a difference to
jitseveral functions separately and thenjitthe function that uses them? For example, if I have the functionsfoo()andbar()and a function@jax.jit def fooBar(x): return foo(x) + bar(x)Is there any difference if
foo()andbar()are already jitted?Should I
jita function after Ivmapit? In the example above, should I dojax.jit(jax.vmal(fooBar))or justjax.vmap(fooBar)?