Closed synikitin closed 7 years ago
Actually any code with inference.run(debug=True) crashes. (At least I tried the SGHMC Bayesian LR example and something of my own.)
The problem is we did not feed the data
dict when running op_check
. A fix is referred above.
However, I modified feed_dict
in Inference.update
as it did not correctly handle cases like data={rv: python_value}
, but I don't know if it breaks other things. @dustinvtran could you look at it?
(I'm a bit lost in the codebase. e.g. Initially I modified the code to transform cases above to data={rv: tf.constant(python_value)}
, then I found the binding to constant tensor is broken in e.g. MonteCarlo...)
Ah, got it. That makes sense re:op_check
with feed dict. It does not break other things. A PR is welcome.
then I found the binding to constant tensor is broken in e.g. MonteCarlo
Could you elaborate on this?
Fixed in #642. The other bug with Gibbs (https://github.com/blei-lab/edward/issues/636#issuecomment-301521641) is fixed in #657.
Hello,
I have been trying to experiment with amortized inference, but binding a placeholder to an observable variable keeps crashing. I have tensorflow 1.1.0 and edward 1.3.1. Here is an example code:
This can be avoided with
y_ph = tf.placeholder_with_default(tf.cast(y, tf.float32), [n, 1])
, but clearly defeats the purpose of feeding.Thanks for your help!