Top Menu

Custom Search

Wednesday, July 20, 2016

Installing tensorflow for deep learning

0 comments
For Python 2.7

TF_BINARY_URL=https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.9.0-cp27-none-linux_x86_64.whl

sudo pip install --upgrade $TF_BINARY_URL


Check if successfully installed or not
python
import tensorflow as tf

Monday, July 18, 2016

Installing SyntaxNet on ubuntu - Deep learning - tensorflow

0 comments
1. Install Java8 (Java7(deprecated)
2. Install Brazel:
$ echo "deb [arch=amd64] http://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
$ curl https://storage.googleapis.com/bazel-apt/doc/apt-key.pub.gpg | sudo apt-key add -
 sudo apt-get update && sudo apt-get install bazel
3. sudo apt-get install swig
4. sudo pip install -U protobuf==3.0.0b2
5. sudo pip install asciitree
6. sudo pip install numpy
Then you must have git installed : sudo apt-get install git
and then built and test

  git clone --recursive https://github.com/tensorflow/models.git
  cd models/syntaxnet/tensorflow
  ./configure
  cd ..
  bazel test syntaxnet/... util/utf8/...
  # On Mac, run the following:
  bazel test --linkopt=-headerpad_max_install_names \
    syntaxnet/... util/utf8/...

install oracle java 8 on ubuntu from repository

0 comments
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer