Custom Search

Wednesday, May 24, 2017

How to Install TensorFlow with Docker on Ubuntu 17.04 16.04 14.04

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!
>>>


No comments:

Post a Comment