jax icon indicating copy to clipboard operation
jax copied to clipboard

generate lax.slice instead of lax.gather for x[<int>] or x[:<int>]

Open mattjj opened this issue 2 years ago • 0 comments

Before, on CPU: image image

After, on CPU: image image

Following up on #11866.

I don't know if these small compile time differences matter, but hey, roofshots! And the jaxpr pretty-printing win is enough for me.

mattjj avatar Aug 12 '22 03:08 mattjj