Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (8 sloc) 282 Bytes
import tensorflow as tf
first = tf.placeholder("float")
second = tf.placeholder("float")
y_sum = tf.add(first, second)
y_mul = tf.mul(first, second)
sess = tf.Session()
print sess.run(y_sum, feed_dict={first: 2, second: 3})
print sess.run(y_mul, feed_dict={first: 2, second: 3})
You can’t perform that action at this time.