Build Deeper: Deep Learning Beginners' Guide by Thimira Amaratunga

Build Deeper: Deep Learning Beginners' Guide by Thimira Amaratunga

Author:Thimira Amaratunga
Language: eng
Format: azw3
Publisher: UNKNOWN
Published: 2017-08-26T07:00:00+00:00


Finally, we’re going to test TensorFlow. Run the following commands in the Python interpreter,

>>> import tensorflow as tf

>>> hello = tf.constant('Hello, TensorFlow!')

>>> sess = tf.Session()

>>> print(sess.run(hello))

b'Hello, TensorFlow!'

>>> a = tf.constant(10)

>>> b = tf.constant(32)

>>> print(sess.run(a + b))

If you have the GPU version of TensorFlow installed, and have CUDA properly setup with its requirements, then you will see a TensorFlow device object being created as soon as you call tf.Session().



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.