Compiling tensorflow from source in Ubuntu

Source: Internet
Author: User

This shows the process of compiling the TensorFlow from the source code.

The original tutorial https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/get_started/os_setup.md# on GitHub Installing-from-sources

First, install the Build tool Bazel (Http://www.bazel.io/docs/install.html#install-on-ubuntu)

Install on Ubuntuinstall JDK 8If is running Ubuntu wily (15.10), you can skip this step. But for Ubuntu trusty (14.04 LTS) users, since OpenJDK 8 isn't available on trusty, install Oracle JDK 8:$ sudo ad D-apt-repository ppa:webupd8team/java$ sudo apt-get update$ sudo apt-get install oracle-java8-installernote:you might ne Ed to sudo apt-get install Software-properties-common If you don't have the add-apt-repository command. See HERE.1. ADD Bazel Distribution URI as a package source (one time Setup) $ echo "Deb 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-if want to use the JDK 7, please replace jdk1.8 with jdk1.7 and If you want to install the testing V Ersion of Bazel, replace stable with testing.2. Update and install bazel$ sudo apt-get update && sudo apt-get install bazelonce installed, can upgrade to Newe R versionof Bazel with:$ sudo apt-get upgrade Bazel 

Compiling tensorflow from source in Ubuntu

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.