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 books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.