Android p preview 2
Fix NNAPI delegation: no scratch tensors and scale 0 for floats

  - TFLite has temporary (scratch) tensors needed for its own CPU
  implementation
  - Delegating temporary tensors to NNAPI will cause validation
  failure, as they are not used
  - This CL skips such temporaries for CONV_2D operations - others may
  need to be added later
  - Setting non-zero scale for 32-bit float tensors causes validation
  errors
  - Also added delegation for MUL.

Change-Id: I62dfaa53f4cdffd0d1dcedb28d181b8c92755ca8
Test: build and run NNAPI benchmarking app
(cherry picked from commit 5d76b8948cffad3196df4b2d0d3fedc54f9061b2)
1 file changed
tree: dc026749c28f632648929c396392d4c8deedd784
  1. tensorflow/
  2. tools/
  3. util/
  4. .gitignore
  5. ACKNOWLEDGMENTS
  6. ADOPTERS.md
  7. Android.bp
  8. arm_compiler.BUILD
  9. AUTHORS
  10. BUILD
  11. CODE_OF_CONDUCT.md
  12. CODEOWNERS
  13. configure
  14. configure.py
  15. CONTRIBUTING.md
  16. ISSUE_TEMPLATE.md
  17. LICENSE
  18. METADATA
  19. models.BUILD
  20. MODULE_LICENSE_APACHE2
  21. NOTICE
  22. README.md
  23. RELEASE.md
  24. SECURITY.md
  25. WORKSPACE
README.md

DocumentationLinux CPULinux GPUMac OS CPUWindows CPUAndroid
DocumentationBuild StatusBuild StatusBuild StatusBuild StatusBuild Status Download

TensorFlow is an open source software library for numerical computation using data flow graphs. The graph nodes represent mathematical operations, while the graph edges represent the multidimensional data arrays (tensors) that flow between them. This flexible architecture enables you to 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.

Keep up to date with release announcements and security updates by subscribing to announce@tensorflow.org.

Installation

See Installing TensorFlow 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:

Nightly pip packages

  • We are pleased to announce that TensorFlow now offers nightly pip packages under the tf-nightly and tf-nightly-gpu project on pypi. Simply run pip install tf-nightly or pip install tf-nightly-gpu in a clean environment to install the nightly TensorFlow build. We support CPU and GPU packages on Linux, Mac, and Windows.

Individual whl files

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
>>> sess.close()

Contribution guidelines

If you want to contribute to TensorFlow, be sure to review the contribution guidelines. This project adheres to TensorFlow's code of conduct. By participating, you are expected to uphold this code.

We use GitHub issues for tracking requests and bugs. So please see TensorFlow Discuss for general questions and discussion, and please direct specific questions to Stack Overflow.

The TensorFlow project strives to abide by generally accepted best practices in open-source software development:

CII Best Practices

For more information

Learn more about the TensorFlow community at the community page of tensorflow.org for a few ways to participate.

License

Apache License 2.0