Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility with Keras 3 #280

Open
lcs-crr opened this issue Dec 9, 2024 · 0 comments
Open

Compatibility with Keras 3 #280

lcs-crr opened this issue Dec 9, 2024 · 0 comments

Comments

@lcs-crr
Copy link

lcs-crr commented Dec 9, 2024

I've been trying to migrate my TF=2.15 and TFP=0.23 code to Keras 3 with JAX (+TF=2.18 tf.data) and stumbled upon Distrax which seems like an elegant drop-in solution :)
However, I've noticed that importing Distrax imports TFP via from tensorflow_probability.substrates import jax as tfp which then asks for tf-keras, i.e. Keras 2.

Failed to import TF-Keras. 
Please note that TF-Keras is not installed by default when you install TensorFlow Probability. 
This is so that JAX-only users do not have to install TensorFlow or TF-Keras. 
To use TensorFlow Probability with TensorFlow, please install the tf-keras or tf-keras-nightly package.
This can be be done through installing the tensorflow-probability[tf] extra.

Does that imply that Distrax is therefore incompatible with Keras 3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant