Reputation: 7877
I want to use XLA as a backend for my project. Is there a recommended way to install it on its own (without the rest of TensorFlow). Jax probably does this, but looking in their repository it's not obvious how.
Upvotes: 2
Views: 1149
Reputation: 7877
XLA has been moved to the OpenXLA GitHub organization. It can be installed on its own from there.
Upvotes: 0
Reputation: 86443
There is no supported way to install XLA on its own apart from tensorflow.
That said, JAX does extract, build, and bundle XLA separately from tensorflow within the jaxlib package. You can see the relevant build scripts for jaxlib on various platforms here: https://github.com/google/jax/tree/main/build
In particular, take a look at build_wheel.py, which contains the scripts that extract relevant pieces of XLA from the tensorflow source as part of the jaxlib build.
Upvotes: 1