Tensorflow docker on MAC

Step 1

docker run -it --rm tensorflow/tensorflow \python -c "import tensorflow as tf; print(tf.reduce_sum(tf.random.normal([1000, 1000])))"

You will see something like this

Step 2

docker run -it tensorflow/tensorflow bash

You will see something like this

As you can see, it just works.

If you want to visit a specified folder, type this

docker run -it --rm -v $PWD:/tmp -w /tmp tensorflow/tensorflow

Use Dockfile

See my other article.

Thanks for reading. Happy coding. Happy engineering.

--

--

--

Data Scientist/MLE/SWE @takemobi

Love podcasts or audiobooks? Learn on the go with our new app.

Announcing Dart 2 Stable and the Dart Web Platform

6 Online Communities About Rust Admin Android You Should Join

It’s a kind of ImageMagick®

Basic Regex Tutorial & Sample

How I went from stay-at-home mum to Front-end Web Developer

GPU-based workloads as a part of Airflow DAGs

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Jimmy Shen

Jimmy Shen

Data Scientist/MLE/SWE @takemobi

More from Medium

GraphQL with Python — Part-1

Let’s Make it Async; Making asynchronous HTTP requests with “aiohttp” in Python

Hands-on with Redis and Django

How to get LINE channel access tokens with Python examples