Hi,
When I run this code, I get this error:
InvalidArgumentError: You must feed a value for placeholder tensor 'placeholders6/Placeholder' with dtype float and shape [100,1]
at this line:
, summary, loss = sess.run([train_op, merged, l], feed_dict=feed_dict)
My hunch is that it's because this line:
x_np = np.random.rand(N, 1)
creates integers rather than floats.
I'm using Python 2.7.6 and tensorflow 2.0.0 but I import TensorFlow like this:
import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
Hi, When I run this code, I get this error: InvalidArgumentError: You must feed a value for placeholder tensor 'placeholders6/Placeholder' with dtype float and shape [100,1] at this line: , summary, loss = sess.run([train_op, merged, l], feed_dict=feed_dict)
My hunch is that it's because this line: x_np = np.random.rand(N, 1)
creates integers rather than floats.
I'm using Python 2.7.6 and tensorflow 2.0.0 but I import TensorFlow like this: import tensorflow.compat.v1 as tf tf.disable_v2_behavior()