blei-lab / edward

A probabilistic programming language in TensorFlow. Deep generative models, variational inference.
http://edwardlib.org
Other
4.83k stars 759 forks source link

Update random_variables.py #908

Open krishkoushik opened 6 years ago

krishkoushik commented 6 years ago

Create tf.Operation by passing in pre-created inputs instead of passing them in later. This is to make it compatible with C_API which is now enabled by default in Tensorflow. Also remove graph._add_op() since this is already done during tf.Operation creation in the most recent version.

dustinvtran commented 6 years ago

Excellent. Thanks @krishkoushik!

Will merge after tests pass.