-
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
Keras not accepting character /
from build_factored_surrogate_posterior
#1799
Comments
Just FYI I believe this is an issue with keras - see here |
Does the error go away if you add: import tf_keras and replace In TF 2.16+, |
I had the same problem and replacing tf.optimizers with tf_keras.optimizers solved the problem. Will there be a fix here?
|
From the TFP 0.24.0 release notes -- https://github.com/tensorflow/probability/releases/tag/v0.24.0 :
We do not plan to update TensorFlow Probability to be compatible with Keras 3. When TensorFlow moved from Keras 2 to Keras 3, it looks like it introduced some breaking changes in |
Given this brief code:
Its execution raises:
Apparently the integration with Keras raised conflicts on the naming patterns used in tfp.
Versions used:
tensorflow==2.16.1
tensorflow-probability[tf]==0.24.0
tf-keras==2.16.0
The text was updated successfully, but these errors were encountered: