In [2]:
import tensorflow as tf
In [6]:
x = tf.placeholder("float", 10)
In [7]:
y = x * 2
In [8]:
with tf.Session() as session:
result = session.run(y, feed_dict={x: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]})
print(result)
In [ ]: