1)
Install Docker
http://fosshelp.blogspot.com/2017/05/how-to-install-latest-docker-ce-on.html
2)
Following command launches the latest TensorFlow CPU binary image in a Docker container from which you can run TensorFlow programs in a shell:
$ docker run -it gcr.io/tensorflow/tensorflow bash
3)
Validate your installation.
Run a short TensorFlow program
Invoke python from your shell as follows:
$ python
Enter the following short program inside the python interactive shell:
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
>>> print(sess.run(hello))
Hello, TensorFlow!
>>>
Install Docker
http://fosshelp.blogspot.com/2017/05/how-to-install-latest-docker-ce-on.html
2)
Following command launches the latest TensorFlow CPU binary image in a Docker container from which you can run TensorFlow programs in a shell:
$ docker run -it gcr.io/tensorflow/tensorflow bash
3)
Validate your installation.
Run a short TensorFlow program
Invoke python from your shell as follows:
$ python
Enter the following short program inside the python interactive shell:
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
>>> print(sess.run(hello))
Hello, TensorFlow!
>>>
No comments:
Post a Comment