Test your TensorFlow installation

Open a Python terminal and enter the following lines of code:

>>> import tensorflow as tf >>> hello = tf.constant("hello TensorFlow!") >>> sess=tf.Session() 

To verify your installation just type:

>>> print sess.run(hello)

If the installation is okay, you'll see the following output:

Hello TensorFlow!

Get Deep Learning with TensorFlow now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.