Coder Social home page Coder Social logo

tensorflow's Introduction

Docker and Tensorflow

Installation of Docker on Mac OS

Install docker

Download the Docker installer
Mount ‘Docker.dmg’
Copy Docker.app to your Application directory
Double click Docker.app and wait for Docker to finish starting up
Open terminal and run the docker hello-world image
Verify Version 17.09.1-ce-mac42

Installation of tensorflow on Mac OS

Install tensorflow

From terminal,
docker run -it gcr.io/tensorflow/tensorflow:latest-devel
You should see root@xxxxxxxxxxxx# which means docker is running

Test installations

python
>>>import tensorflow as tf
>>>hello = tf.constant('Hello, TensorFlow!')
>>>sess = tf.Session()
>>>print(sess.run(hello))
If you see Hello, TensorFlow! Then it works
quit() to leave Python shell

Eager Installation

You will need version 1.5.0 to install Eager. My version of Tensorflow was 0.1.2

$docker run -it gcr.io/tensorflow/tensorflow:latest-devel
root@37eec9a002ca:~# 
This means installation is successful and docker is running
#python
>>>import tensorflow as tf
>>>tf.__version__
1.5.0
>>quit() 
#control-D

Pulling docker image

Open terminal

docker pull tensorflow/tensorflow

test image

docker run -it -p 8888:8888 tensorflow/tensorflow

Cloning repo

Clone github repo https://github.com/aamini/introtodeeplearning_labs

Unzip folder to anywhere, for me, I will unzip to ~/desktop/introtodeeplearning_labs-master

Open terminal

docker run -it -p 8888:8888 -v ~/desktop/introtodeeplearning_labs-master:/notebooks tensorflow/tensorflow

in browser, navigate to URL provided by docker

Exit docker

Control-D

tensorflow's People

Contributors

pinemosquito avatar portlandrocketry avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.