Custom Search

Wednesday, May 24, 2017

How to Install TensorFlow with Docker on Ubuntu 17.04 16.04 14.04

Install Docker

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 bash

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(
Hello, TensorFlow!

No comments:

Post a Comment