| Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 1 | #TensorFlow |
| 2 | |
| 3 | TensorFlow is an open source software library for numerical computation using |
| 4 | data flow graphs. Nodes in the graph represent mathematical operations, while |
| 5 | the graph edges represent the multidimensional data arrays (tensors) that flow |
| 6 | between them. This flexible architecture lets you deploy computation to one |
| 7 | or more CPUs or GPUs in a desktop, server, or mobile device without rewriting |
| 8 | code. TensorFlow was originally developed by researchers and engineers |
| 9 | working on the Google Brain team within Google's Machine Intelligence research |
| 10 | organization for the purposes of conducting machine learning and deep neural |
| 11 | networks research. The system is general enough to be applicable in a wide |
| 12 | variety of other domains, as well. |
| 13 | |
| Manjunath Kudlur | cd9e60c | 2015-11-06 18:37:11 -0800 | [diff] [blame] | 14 | # Download and Setup |
| 15 | |
| 16 | For detailed installation instructions, see |
| Vijay Vasudevan | 8bd3b38 | 2015-11-06 21:57:38 -0800 | [diff] [blame^] | 17 | [here](tensorflow/g3doc/get_started/os_setup.md). |
| Manjunath Kudlur | cd9e60c | 2015-11-06 18:37:11 -0800 | [diff] [blame] | 18 | |
| 19 | ## Binary Installation |
| 20 | |
| 21 | ### Ubuntu/Linux |
| 22 | |
| 23 | Make sure you have [pip](https://pypi.python.org/pypi/pip) installed: |
| 24 | |
| 25 | ```sh |
| 26 | $ sudo apt-get install python-pip |
| 27 | ``` |
| 28 | |
| 29 | Install 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 | |
| 41 | Make sure you have [pip](https://pypi.python.org/pypi/pip) installed: |
| 42 | |
| 43 | If using `easy_install`: |
| 44 | |
| 45 | ```sh |
| 46 | $ sudo easy_install pip |
| 47 | ``` |
| 48 | |
| 49 | Install 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) |
| 64 | Hello, TensorFlow! |
| 65 | >>> a = tf.constant(10) |
| 66 | >>> b = tf.constant(32) |
| 67 | >>> print sess.run(a+b) |
| 68 | 42 |
| 69 | >>> |
| 70 | |
| 71 | ``` |
| 72 | |
| 73 | |
| Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 74 | ##For more information |
| 75 | |
| Manjunath Kudlur | f41959c | 2015-11-06 16:27:58 -0800 | [diff] [blame] | 76 | * [TensorFlow website](http://tensorflow.org) |