Fork of the STT fork of Tensorflow
Go to file
Eugene Zhulenev 6ba169665b [tensorflow] Add a Tensor constructor that allows to transfer TensorBuffer ownership
Currently Tensor does not have a constructor that allows to pass TensorBuffer ownership to Tensor. It can only be done with Ref()/Unref() operations pair.

core::RefCountPtr<TensorBuffer> clearly communicates the ownership of the buffer.

Although it would be nice to have "take ownership" constructor with a simple pointer argument, it is harder to signal this intention in a type signature.

PiperOrigin-RevId: 356993664
Change-Id: Iabe906c0c22aa4ffca0bd6d8b1fe889d286b7766
2021-02-11 09:42:22 -08:00
.github Don't run nightly update job in forks. 2021-02-08 10:14:21 +00:00
tensorflow [tensorflow] Add a Tensor constructor that allows to transfer TensorBuffer ownership 2021-02-11 09:42:22 -08:00
third_party Clean up dnnl_single_threaded build configurations. 2021-02-10 13:26:08 -08:00
tools
.bazelrc Fix build description typos. 2021-02-09 13:43:50 -08:00
.bazelversion Updating TensorFlow's bazel version 4.0.0 (the first LTS release). 2021-01-21 17:37:25 -08:00
.gitignore Ignore CoreML BUILD files which are generated by the configure script 2020-04-02 14:18:41 -07:00
.pylintrc
ACKNOWLEDGMENTS
arm_compiler.BUILD Add aarch64 cross compile toolchain 2020-04-09 17:55:14 +01:00
AUTHORS
BUILD [NFC, internal change] Polish copybara workflow file. 2021-01-18 11:07:07 -08:00
CODE_OF_CONDUCT.md Update CODE_OF_CONDUCT and fix broken sync 2021-02-05 10:43:16 -08:00
CODEOWNERS Add penpornk@ as a /tensorflow/core/kernels/mkl/ reviewer 2020-12-14 10:18:12 -08:00
configure perfer python3 to compile 2020-04-12 22:04:24 +08:00
configure.cmd Update configure.cmd 2020-08-11 18:27:42 +09:00
configure.py Make default PYTHON_LIB_PATH deterministic. 2021-02-10 07:46:50 -08:00
CONTRIBUTING.md PR : Update CONTRIBUTING.md 2020-08-20 14:36:00 -07:00
ISSUE_TEMPLATE.md Merge pull request from AbdulBaseerMohammedKhan:master 2020-06-04 21:43:36 -07:00
LICENSE
models.BUILD
README.md Add libtensorflow latest links to the README. 2021-02-10 11:04:21 -08:00
RELEASE.md Merge pull request from nluehr:tf32-fixes 2021-02-08 14:08:55 -08:00
SECURITY.md Replace instances of "whitelist" with "allowlist" where possible. See Google Developer guidelines at https://developers.google.com/style/word-list#blacklist for more information. 2020-07-08 10:13:43 -07:00
WORKSPACE Prevent buildifier warning in WORKSPACE file. 2021-02-01 12:06:13 -08:00

Python PyPI

Documentation
Documentation

TensorFlow is an end-to-end open source platform for machine learning. It has a comprehensive, flexible ecosystem of tools, libraries, and community resources that lets researchers push the state-of-the-art in ML and developers easily build and deploy ML-powered applications.

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

TensorFlow provides stable Python and C++ APIs, as well as non-guaranteed backward compatible API for other languages.

Keep up-to-date with release announcements and security updates by subscribing to announce@tensorflow.org. See all the mailing lists.

Install

See the TensorFlow install guide for the pip package, to enable GPU support, use a Docker container, and build from source.

To install the current release, which includes support for CUDA-enabled GPU cards (Ubuntu and Windows):

$ pip install tensorflow

A smaller CPU-only package is also available:

$ pip install tensorflow-cpu

To update TensorFlow to the latest version, add --upgrade flag to the above commands.

Nightly binaries are available for testing using the tf-nightly and tf-nightly-cpu packages on PyPi.

Try your first TensorFlow program

$ python
>>> import tensorflow as tf
>>> tf.add(1, 2).numpy()
3
>>> hello = tf.constant('Hello, TensorFlow!')
>>> hello.numpy()
b'Hello, TensorFlow!'

For more examples, see the TensorFlow tutorials.

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, 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:

Fuzzing Status CII Best Practices Contributor Covenant

Continuous build status

Official Builds

Build Type Status Artifacts
Linux CPU Status PyPI
Linux GPU Status PyPI
Linux XLA Status TBA
macOS Status PyPI
Windows CPU Status PyPI
Windows GPU Status PyPI
Android Status Download
Raspberry Pi 0 and 1 Status Py3
Raspberry Pi 2 and 3 Status Py3
Libtensorflow MacOS CPU Status Temporarily Unavailable Nightly Binary Official GCS
Libtensorflow Linux CPU Status Temporarily Unavailable Nightly Binary Official GCS
Libtensorflow Linux GPU Status Temporarily Unavailable Nightly Binary Official GCS
Libtensorflow Windows CPU Status Temporarily Unavailable Nightly Binary Official GCS
Libtensorflow Windows GPU Status Temporarily Unavailable Nightly Binary Official GCS

Community Supported Builds

Build Type Status Artifacts
Linux AMD ROCm GPU Nightly Build Status Nightly
Linux AMD ROCm GPU Stable Release Build Status Release 1.15 / 2.x
Linux s390x Nightly Build Status Nightly
Linux s390x CPU Stable Release Build Status Release
Linux ppc64le CPU Nightly Build Status Nightly
Linux ppc64le CPU Stable Release Build Status Release 1.15 / 2.x
Linux ppc64le GPU Nightly Build Status Nightly
Linux ppc64le GPU Stable Release Build Status Release 1.15 / 2.x
Linux aarch64 CPU Nightly (Linaro) Build Status Nightly
Linux aarch64 CPU Stable Release (Linaro) Build Status Release 1.x & 2.x
Linux aarch64 CPU Nightly (OpenLab)
Python 3.6
Build Status Nightly
Linux aarch64 CPU Stable Release (OpenLab) Build Status Release 1.15 / 2.x
Linux CPU with Intel oneAPI Deep Neural Network Library (oneDNN) Nightly Build Status Nightly
Linux CPU with Intel oneAPI Deep Neural Network Library (oneDNN) Stable Release Build Status Release 1.15 / 2.x
Red Hat® Enterprise Linux® 7.6 CPU & GPU
Python 2.7, 3.6
Build Status 1.13.1 PyPI

Community Supported Containers

Container Type Status Artifacts
TensorFlow aarch64 Neoverse-N1 CPU Stable (Linaro)
Debian
Static Release 2.3

Resources

Learn more about the TensorFlow community and how to contribute.

License

Apache License 2.0