Skip to content

JAX speed in iterations after the warm up #9069

Answered by jakevdp
Houman-HM asked this question in General
Discussion options

You must be logged in to vote

I suspect you're timing the iterations without calling .block_until_ready(), so the first few runs are just measuring the dispatch time rather than the actual computation time. See https://jax.readthedocs.io/en/latest/async_dispatch.html and https://jax.readthedocs.io/en/latest/faq.html#benchmarking-jax-code for more information.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Houman-HM
Comment options

Answer selected by Houman-HM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants