Fork of the STT fork of Tensorflow
Go to file
Asim Shankar e8f2aad0c0 Java/C API: Make them Android friendly.
Make the C library and JNI shared library targets Android friendly by linking
with the smaller android runtime when building with --config=android

Relatedly, strip all but the JNI symbols from libtensorflow_jni.so
(regardless of build configuration) to trim its size down (by roughly
50%).

Link in the Java libraries in the Android examples. The longer term intention
is to encourage use of the TensorFlow Java API in Android and do away with the
TensorFlowInferenceInterface class (and related JNI code) currently used in
Android. This will provide a single, more thoroughly tested API for use in all
Java settings - Android or not. An update to the Android example to switch
to this will come in a follow up change.

NOTES:
- For expediency of this change, the C API call: TF_LoadSessionFromSavedModel
  is not available when building for Android. I will look into fixing that
  separately.

- Linking in the JNI library required by the TensorFlow Java API results in
  a small increase (0.7%) in binary size of libtensorflow_demo.so

An unrelatedly, rename libtensorflow-jni.so to libtensorflow_jni.so
to be consistent with other shared libraries created in tensorflow.
Change: 144320074
2017-01-12 07:07:52 -08:00
tensorflow Java/C API: Make them Android friendly. 2017-01-12 07:07:52 -08:00
third_party Switch open-source to use jemalloc for CPU Tensor memory allocation, gRPC, and other places where we call malloc/free. 2017-01-11 16:45:22 -08:00
tools Merge changes from github. 2016-12-14 16:04:11 -08:00
util/python Merge changes from github. 2016-11-09 13:48:22 -08:00
.gitignore Merge changes from github. 2016-11-09 13:48:22 -08:00
.gitmodules Remove submodule for protobuf from staging 2016-05-27 15:55:12 -07:00
ACKNOWLEDGMENTS TensorFlow: Improve performance of Alexnet 2015-11-20 10:30:41 -08:00
ADOPTERS.md Internal file cleanup. 2016-10-18 10:31:29 -07:00
AUTHORS Merge changes from github. 2016-07-11 10:48:23 -07:00
bower.BUILD Update bazel rules for bower dependencies. 2016-11-17 14:02:58 -08:00
BUILD Replace all uses of tf.complex_abs with tf.abs. 2016-12-19 17:03:28 -08:00
configure Switch open-source to use jemalloc for CPU Tensor memory allocation, gRPC, and other places where we call malloc/free. 2017-01-11 16:45:22 -08:00
CONTRIBUTING.md Change contributing.md for new contribution policy. 2015-12-17 17:27:36 -08:00
ISSUE_TEMPLATE.md Merge changes from github. 2016-09-09 17:19:12 -07:00
LICENSE TensorFlow: Initial commit of TensorFlow library. 2015-11-06 16:27:58 -08:00
models.BUILD Make models.BUILD filegroup include everything but metadata files and archives. 2017-01-10 14:25:53 -08:00
README.md Android README.md tweaks: improve instructions and add links to prebuilt native libraries. 2017-01-09 16:03:08 -08:00
RELEASE.md Merge changes from github. 2017-01-02 22:27:38 -08:00
WORKSPACE Android: add image stylization example demo based on "A Learned Representation For Artistic Style" 2017-01-11 14:26:29 -08:00



-----------------
Linux CPU Linux GPU Mac OS CPU Windows CPU Android
Build Status Build Status Build Status Build Status Build Status

TensorFlow is an open source software library for numerical computation using data flow graphs. Nodes in the graph represent mathematical operations, while the graph edges represent the multidimensional data arrays (tensors) that flow between them. This flexible architecture lets you deploy computation to one or more CPUs or GPUs in a desktop, server, or mobile device without rewriting code. TensorFlow also includes TensorBoard, a data visualization toolkit.

TensorFlow was originally developed by researchers and engineers working on the Google Brain team within Google's Machine Intelligence research organization for the purposes of conducting machine learning and deep neural networks research. The system is general enough to be applicable in a wide variety of other domains, as well.

If you'd like to contribute to TensorFlow, be sure to review the contribution guidelines.

We use GitHub issues for tracking requests and bugs, but please see Community for general questions and discussion.

Installation

See Download and Setup for instructions on how to install our release binaries or how to build from source.

People who are a little more adventurous can also try our nightly binaries:

Try your first TensorFlow program

$ python
>>> import tensorflow as tf
>>> hello = tf.constant('Hello, TensorFlow!')
>>> sess = tf.Session()
>>> sess.run(hello)
Hello, TensorFlow!
>>> a = tf.constant(10)
>>> b = tf.constant(32)
>>> sess.run(a+b)
42
>>>

##For more information

The TensorFlow community has created amazing things with TensorFlow, please see the resources section of tensorflow.org for an incomplete list.