-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
tensorflow 2.16.1 breaks tensorflow-probability with Keras 3.0
API
#1795
Comments
3.0
API3.0
API
* tensorflow v2.16.1 breaks tensorflow-probability at import time with the Keras v3.0 API breaking change. Until Keras v3.0 is adopted in tensorflow-probability, tensorflow v2.16.1+ can't be used. - c.f. tensorflow/probability#1795 * Note that Apple silicon machines should revert to installing 'tensorflow' instead of 'tensorflow-macos' for tensorflow v2.16.1+. * Note that macos x86 builds of tensorflow will be deprecated and no longer released from tensorflow v2.17.0+.
While a new release of This seems like it should be provided through a edit: If I had taken the time to read 988f023 more carefully before posting this, I would have realized that commit also add this extra as Lines 110 to 112 in 988f023
Lines 51 to 56 in 988f023
|
Thanks for the report! The immediate breakage should be fixed by the release today of TFP 0.24.0 -- https://github.com/tensorflow/probability/releases/tag/v0.24.0 . TFP 0.24.0 should work if TF 2.16.1 and TF Keras 2.16 are installed. We do not currently have any plans to migrate from Keras 2 to Keras 3. |
Thanks @jburnim.
That's useful to know. It seems that Note to other people that are trying to balance supporting supporting |
👋 Yesterday (2024-03-08)
tensorflow
v2.16.1
was released on PyPI which introduces breaking changes with Keras3.0
. While thetensorflow
v2.16.1
release notes provide instructions on how to force TensorFlow to use the Keras2.0
API, what is the timeline fortensorflow_probability
to adopt the Keras3.0
API?Minimal failing example:
At the moment, tensorflow-probability is still using the Keras
2.0
API in the codebase:probability/tensorflow_probability/python/layers/distribution_layer.py
Line 69 in 9a14b9b
The text was updated successfully, but these errors were encountered: