Skip to content
Discussion options

You must be logged in to vote

I do agree with you that it would be interesting to know all optimisations performed by Jax/XLA. However it is my understanding that there are different levels where those optimisations happen.
Below is some of my understanding on the XLA compiler toolchain, but I'd also be interested to hear more on it.

For example if you write a function that multiplies a matrix by the inverse of another matrix

That's most likely not a compiler optimisation but just the fact that the inverse of a matrix A is computed by calling lax.solve(A,identity) which in turn uses a LU decomposition and a triangular solve. I call this lowering (of an operation to more fundamental_primitives_).
This does not hit th…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@soraros
Comment options

@jeremiecoullon
Comment options

Answer selected by jeremiecoullon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants