-
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
Support for Tensorflow 2.0 #320
Comments
TFP nightly should be compatible with TF2. Let us know if you encounter
issues. In particular we are still looking for performance regressions.
…On Fri, Mar 8, 2019, 2:23 AM Sanyam Kapoor ***@***.***> wrote:
Unfortunately, I could not find the right api in the docs. Is tfp
supported with TF 2.0 alpha?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#320>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AVJZI99sQ6r5m3BR1cjoleSzP3hCyB2qks5vUg_0gaJpZM4bkzPe>
.
|
Great! Let me try that out. |
I tried it and everything works fine, couldn't see performance regressions. |
nightly works fine for this case |
Sorry but TFP does not work at all with TF 2 I still got the same error.
My TFP version:
|
TFP is TF2 ready! (We still need to update a few examples, but the core library is tested under TF2!) Try this: |
Please reopen if the above procedure didnt work for you. In the coming days we'll also update the GH home page. |
When trying to run |
here is the list of available 2.0-preview packages: https://pypi.org/project/tf-nightly-2.0-preview/2.0.0.dev20190417/#files looks like the only windows version only has py 3.6 support |
(note this is a TF issue, not TFP) |
when should i put the file?? |
Is this (TFP nightly 2.0 preview) still the recommended way with TF2-beta latest version? It's not clear from the post because the original question was for TF2-alpha |
Hi @kristofgiber -- the tensorflow-probability 0.7 release is tested against 2.0.0-beta and should be stable. tfp-nightly is tested against tf-nightly and tf-nightly-2.0-preview and should work with both. Please report any issues you encounter using either combination! |
@csuter Thank you. As I understand one difference between tf2 preview and tf2 is that in tf2 preview eager execution is enabled by default but not in tf2. Do I still have to enable eager execution for tfp 0.7 to work when I use it with tf2? |
We (and TF) recommend the following idiom for starting to adopt TF2
This should ensure you are getting tf2-style APIs and that the various behavioral differences are enabled. At some point the above will become the default when you |
@csuter Good to know! So by using compat.v2 I should be fine and enabling eager execution is not required for tfp+tf2 combo to work |
Hello, is the nightly version still the only way to import distributions? I am getting the same error as above in TF 2 |
If you want the stable version w/o latest bells & whistles, |
Unfortunately, I could not find the right api in the docs. Is
tfp
supported with TF 2.0 alpha?Versions
tensorflow==2.0.0-alpha0
tensorflow-probability==0.6.0
Code
Error Logs
The text was updated successfully, but these errors were encountered: