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

Pin tensorflow_probability to work with TF 2.4.1 #1057

Merged
merged 2 commits into from
Jul 29, 2021
Merged

Pin tensorflow_probability to work with TF 2.4.1 #1057

merged 2 commits into from
Jul 29, 2021

Conversation

rosbo
Copy link
Contributor

@rosbo rosbo commented Jul 27, 2021

The latest version of tensorflow_probability is not compatible with
our version of TF:

ImportError: This version of TensorFlow Probability requires TensorFlow
version >= 2.5; Detected an installation of version 2.4.1. Please
upgrade TensorFlow to proceed

Pinning & adding a test to prevent regression.

https://b/194837139

The latest version of `tensorflow_probability` is not compatible with
our version of TF:

```
ImportError: This version of TensorFlow Probability requires TensorFlow
version >= 2.5; Detected an installation of version 2.4.1. Please
upgrade TensorFlow to proceed```

Pinning & adding a test to prevent regression.

https://b/194837139
@rosbo rosbo requested a review from dster2 July 27, 2021 23:15
Copy link
Contributor

@dster2 dster2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Vincent!

@@ -0,0 +1,10 @@
import unittest

import tensorflow_probability as tfp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In our current image, I am able to import tensorflow_probability directly, it only fails if I first import tensorflow.

@rosbo rosbo merged commit b7d1851 into main Jul 29, 2021
@rosbo rosbo deleted the pin_tfp branch July 29, 2021 22:24
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

Successfully merging this pull request may close these issues.

2 participants