Test

This notebook tests whether TensorFlow is installed properly.


In [1]:
import tensorflow as tf

In [2]:
x1 = tf.placeholder(tf.float32)
x2 = tf.placeholder(tf.float32)

In [3]:
sum_op = tf.add(x1, x2)

In [4]:
with tf.Session() as session:
    sum_result = session.run(sum_op, feed_dict={x1: 2.0, x2: 1.0})

In [5]:
sum_result


Out[5]:
3.0

In [ ]: