Skip to content
Discussion options

You must be logged in to vote

The difference here is the time that it takes the jax.jit transform to do a cache lookup on selu and construct & return a wrapped function. You can measure this more directly if you wish:

%timeit jax.jit(selu)

As for whether it's significant – it's a one-time cost of several tens of microseconds. When running microbenchmarks, this can be significant. If you're JIT-compiling a larger/more complex piece of code, it may not be significant compared to the cost of the full computation.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rozeappletree
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants