Install Tensorflow

How install Tensorflow on Ubuntu 16.04

Step 1: Install Python 3

Update your repository list first:

apt-get update

Then, install Python 3, Python 3 have better performance than Python 2:

apt-get install python3-pip python3-dev python-virtualenv

Step 2: Setup Python 3 env for tensorflow

Setup a separated env for tensorflow

virtualenv --system-site-packages -p python3 ~/tensorflow

source ~/tensorflow/bin/activate

Update pip first to make sure pip >= 8.1

pip install --upgrade pip

Step 3: Confirming the installation of tensorflow

Install tensorflow without GPU version:

pip install --upgrade tensorflow

Step 4: Confirming the installation of tensorflow

Create a example python to test

vi /tmp/tf-example.py

Enter code as following :

import tensorflow as tf
hello = tf.constant('Hello, Tensorflow!')
print(tf.Session().run(hello))

Run it :

source ~/tensorflow/bin/activate
python /tmp/tf-example.py

You will now see a output like:

b'Hello, Tensorflow!'

Congrats! You have now installed Tensorflow!.

Share "Install Tensorflow"

Share on: FacebookTwitter

Move blog to github pages.

“Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.”

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

  • TF
  • CNN
  • GPU

Plus bolding and italics and whatever else you want.

Download this template or get it from the GitHub repo.

Share "Move blog to github pages."

Share on: FacebookTwitter

Sample post

This is what a post on your blog looks like. This template is especially well suited for posting nice succint blurbs, much like Seth Godin does. Of course, it will also work well with longer posts, and you can change the number of posts per page in the _config.yml file. There’s no guarentee this blog will make you write as well as he does, but it will present your writings in a beautiful, clean, and distraction-free way. Try to write a little bit, every day.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Share "Sample post"

Share on: FacebookTwitter

With nice formatting too...

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

“Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.”

Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

  • list item
  • list item
  • list item

Plus bolding and italics and whatever else you want.

Download this template or get it from the GitHub repo.

Share "With nice formatting too..."

Share on: FacebookTwitter

And subtle sharing popups...

Check out the share/permalink at the bottom of each post. This gives you a nice popup that allows people to share the specific post, using pure CSS. Okay, so there’s a weeee bit of js to allow for a ‘copy to clipboard’ button. But these sharing tools won’t bloat your page, or look obnoxious.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Share "And subtle sharing popups..."

Share on: FacebookTwitter

blog built using the cayman-theme by Jason Long. LICENSE