blob: 05bfec84315d2e9e97f5bda46e14ccfd438e0ecf [file] [log] [blame] [view]
Manjunath Kudlurf41959c2015-11-06 16:27:58 -08001#TensorFlow
2
3TensorFlow is an open source software library for numerical computation using
4data flow graphs. Nodes in the graph represent mathematical operations, while
5the graph edges represent the multidimensional data arrays (tensors) that flow
6between them. This flexible architecture lets you deploy computation to one
7or more CPUs or GPUs in a desktop, server, or mobile device without rewriting
8code. TensorFlow was originally developed by researchers and engineers
9working on the Google Brain team within Google's Machine Intelligence research
10organization for the purposes of conducting machine learning and deep neural
11networks research. The system is general enough to be applicable in a wide
12variety of other domains, as well.
13
Manjunath Kudlurcd9e60c2015-11-06 18:37:11 -080014# Download and Setup
15
16For detailed installation instructions, see
Vijay Vasudevan8bd3b382015-11-06 21:57:38 -080017[here](tensorflow/g3doc/get_started/os_setup.md).
Manjunath Kudlurcd9e60c2015-11-06 18:37:11 -080018
19## Binary Installation
20
21### Ubuntu/Linux
22
23Make sure you have [pip](https://pypi.python.org/pypi/pip) installed:
24
25```sh
26$ sudo apt-get install python-pip
27```
28
29Install TensorFlow:
30
31```sh
32# For CPU-only version
33$ sudo pip install https://storage.googleapis.com/tensorflow/linux/cpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
34
35# For GPU-enabled version
36$ sudo pip install https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.5.0-cp27-none-linux_x86_64.whl
37```
38
39### Mac OS X
40
41Make sure you have [pip](https://pypi.python.org/pypi/pip) installed:
42
43If using `easy_install`:
44
45```sh
46$ sudo easy_install pip
47```
48
49Install TensorFlow (only CPU binary version is currently available).
50
51```sh
52$ sudo pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
53```
54
55### Try your first TensorFlow program
56
57```sh
58$ python
59
60>>> import tensorflow as tf
61>>> hello = tf.constant('Hello, TensorFlow!')
62>>> sess = tf.Session()
63>>> print sess.run(hello)
64Hello, TensorFlow!
65>>> a = tf.constant(10)
66>>> b = tf.constant(32)
67>>> print sess.run(a+b)
6842
69>>>
70
71```
72
73
Manjunath Kudlurf41959c2015-11-06 16:27:58 -080074##For more information
75
Manjunath Kudlurf41959c2015-11-06 16:27:58 -080076* [TensorFlow website](http://tensorflow.org)