tensorflow / probability

Probabilistic reasoning and statistical analysis in TensorFlow
https://www.tensorflow.org/probability/
Apache License 2.0
4.27k stars 1.11k forks source link

[Request] Update examples for eager execution #416

Open tlkh opened 5 years ago

tlkh commented 5 years ago

There are many great examples provided in the docs:

https://www.tensorflow.org/probability/api_docs/python/tfp/trainable_distributions/normal#examples

However, we should also provide a version of that with eager execution in mind. The current example does not work with eager execution, and it is not immediately straightforward to convert the script.

ccurro commented 5 years ago

+1

Likewise for STS specifically

brianwa84 commented 5 years ago

Hopefully we'll get to it eventually. Meanwhile feel free to send PRs.

I'd suggest we change docstrings and examples to work under:

import tensorflow.compat.v2 as tf tf.enable_v2_behavior()

Brian Patton | Software Engineer | bjp@google.com

On Wed, May 22, 2019 at 10:50 AM Chris Curro notifications@github.com wrote:

+1

Likewise for STS specifically

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tensorflow/probability/issues/416?email_source=notifications&email_token=AFJFSI5VW47VZCIGODFZGWTPWVMUZA5CNFSM4HN7V6TKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODV7JYUA#issuecomment-494836816, or mute the thread https://github.com/notifications/unsubscribe-auth/AFJFSI34VPLR4ZHHDGADPWTPWVMUZANCNFSM4HN7V6TA .