The Python Oracle

Why is JAX's `split()` so slow at first call?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Quiet Intelligence

--

Chapters
00:00 Question
02:01 Accepted answer (Score 5)
06:21 Answer 2 (Score 2)
07:44 Thank you

--

Full question
https://stackoverflow.com/questions/7419...

Accepted answer links:
[XLA:Slice]: https://www.tensorflow.org/xla/operation...
[XLA:DynamicSlice]: https://www.tensorflow.org/xla/operation...
[XLA:Gather]: https://www.tensorflow.org/xla/operation...
[see code]: https://github.com/google/jax/blob/jax-v...
[PR #12219]: https://github.com/google/jax/pull/12219
[new jax issue]: https://github.com/google/jax/issues/new...

Answer 2 links:
[Jax inbult functions are also JIT compiled]: https://jax.readthedocs.io/en/latest/faq...
[fairly complicated]: https://jax.readthedocs.io/en/latest/_mo...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #performance #jax

#avk47