| commit | cb64295ec7308f770b22db6047a1e755b35b7bee | [log] [tgz] |
|---|---|---|
| author | belitskiy <belitskiy@google.com> | Fri Mar 07 22:33:29 2025 |
| committer | GitHub <noreply@github.com> | Fri Mar 07 22:33:29 2025 |
| tree | e49007b296bfa84c6694d408a2cb53c5b3cfc015 | |
| parent | 9e75d4b0c7170148b2e88ebaf375470b372d8347 [diff] |
Backport Windows builds into 2.18 for 2.18.1 (#88848) * Update scripts/configs for Windows nightly/release builds. `set -u` (does not allow unbound variables) has been removed from all scripts. This is due to Docker on Windows treating variables in an env file, set to an empty value (`MY_VAR=`), as unbound variables. Consequently, these variables, even though they are "set", do not make it into the Docker container at all, and various checks for those variables fail outright. PiperOrigin-RevId: 713717958 (cherry picked from commit fa3b3c1a0d1d0d81e31bdb92e1fa3dc2f440c23f) * Fix up the 2022 Win RBE config. PiperOrigin-RevId: 718920772 (cherry picked from commit 82ba59a6465b2e1e30c0d41a8a43347187ff3b17) * Adjust the wheel.sh, libtensorflow.sh scripts to be Win-compatible for upload. Temporary workaround. PiperOrigin-RevId: 719027529 (cherry picked from commit 7513f771aa0b5b75b799aaf09d361ff90adc3d49) * Add a workaround for gsutil not working properly on MSYS2. PiperOrigin-RevId: 719389902 (cherry picked from commit 9ab2fee32ac8d611a946c70e0ded8f0e9d95e1ab) * Add the missing wheel name specification for Windows. PiperOrigin-RevId: 720176067 (cherry picked from commit 768059fbc581c6d80ac260e8ad4a2d8dc86bbcec) * Allow building identical wheels under additional names. Currently only needed for Windows, since the same wheel is uploaded to both tensorflow_cpu, and tensorflow PyPi repos, but different names/metadata are needed. PiperOrigin-RevId: 720313792 (cherry picked from commit a93dc78944554b2c74149b31eebf06ef01c41526) * Actually copy the extra wheels into the expected directory afterwards. PiperOrigin-RevId: 720753829 (cherry picked from commit 6ba7e4e33ddfa5027fdc8016db623af35f5beec3)
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 within the Machine Intelligence team at Google Brain to conduct research in machine learning and neural networks. However, the framework is versatile enough to be used in other areas as well.
TensorFlow provides stable Python and C++ APIs, as well as a 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.
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
Other devices (DirectX and MacOS-metal) are supported using Device plugins.
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.
$ 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.
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 Forum 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.
Follow these steps to patch a specific version of TensorFlow, for example, to apply fixes to bugs or security vulnerabilities:
r2.8 for version 2.8.You can find more community-supported platforms and configurations in the TensorFlow SIG Build community builds table.
| Build Type | Status | Artifacts |
|---|---|---|
| Linux CPU | PyPI | |
| Linux GPU | PyPI | |
| Linux XLA | TBA | |
| macOS | PyPI | |
| Windows CPU | PyPI | |
| Windows GPU | PyPI | |
| Android | Download | |
| Raspberry Pi 0 and 1 | Py3 | |
| Raspberry Pi 2 and 3 | 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 |
Learn more about the TensorFlow community and how to contribute.