In [1]:
import tensorflow as tf
In [ ]:
init = tf.global_variables_initializer()
In [2]:
a = tf.placeholder(tf.float32, shape=[3])
b = tf.constant([3, 6, 9], tf.float32)
c = a + b
In [5]:
with tf.Session() as sess:
print(sess.run(c, {a: [1,2,3]}))
In [ ]: