-
I am computing value and gradient of a function
I am a bit confused by two things.
Also, Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hmmm, IIUC |
Beta Was this translation helpful? Give feedback.
-
In a sense, JAX has two tiers of compilation ("op by op", If you have a compelling use case where you need an intermediate point between the two, we'd love to hear it. Usually the right design point if you care about speed is "use By the way, even if you don't For " |
Beta Was this translation helpful? Give feedback.
In a sense, JAX has two tiers of compilation ("op by op",
jit
) where TF has three ("op by op",tf.function
withoutjit
,tf.function
withjit
). We have sometimes talked about adding a third tier to JAX between "op by op" andjit
, but have never yet found a use case where someone needs that middle tier.If you have a compelling use case where you need an intermediate point between the two, we'd love to hear it. Usually the right design point if you care about speed is "use
jit
".By the way, even if you don't
jit
your code, many JAX library functions usejit
internally. There's no real notion of an "op" in JAX distinct fromjit
: we have primitives (the operations mainly injax.lax
) and most …