placeholder python tensorflow code example
Example 1: tensorflow placeholder
import tensorflow as tf
x = tf.placeholder("float", None)
y = x * 2
with tf.Session() as session:
result = session.run(y, feed_dict={x: [1, 2, 3]})
print(result)
Example 2: tensorflow placeholder
x = tf.placeholder("float", None)