Skip to content

Commit 175cae5

Browse files
Merge branch 'master' into mabuzain/add-quint8-support-new
2 parents af3f5f4 + 7681c3e commit 175cae5

3,393 files changed

Lines changed: 82196 additions & 53730 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.bazelrc

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ build:tpu --define=enable_mlir_bridge=true
294294
build:rocm --crosstool_top=@local_config_rocm//crosstool:toolchain
295295
build:rocm --define=using_rocm_hipcc=true
296296
build:rocm --define=tensorflow_mkldnn_contraction_kernel=0
297+
build:rocm --define=xnn_enable_avxvnniint8=false
298+
build:rocm --define=xnn_enable_avx512fp16=false
297299
build:rocm --repo_env TF_NEED_ROCM=1
298300

299301
build:rocm_clang_official --config=rocm
@@ -303,6 +305,10 @@ build:rocm_clang_official --linkopt="-fuse-ld=lld"
303305
build:rocm_clang_official --host_linkopt="-fuse-ld=lld"
304306

305307
build:rocm_ci --config=rocm_clang_official
308+
build:rocm_ci_hermetic --config=rocm_clang_official
309+
build:rocm_ci_hermetic --repo_env="OS=ubuntu_22.04"
310+
build:rocm_ci_hermetic --repo_env="ROCM_VERSION=6.2.0"
311+
build:rocm_ci_hermetic --@local_config_rocm//rocm:use_rocm_hermetic_rpath=True
306312

307313
build:sycl --crosstool_top=@local_config_sycl//crosstool:toolchain
308314
build:sycl --define=using_sycl=true
@@ -469,22 +475,19 @@ test:win_clang --linkopt=/FORCE:MULTIPLE
469475
test:win_clang --host_linkopt=/FORCE:MULTIPLE
470476
test:win_clang --action_env=PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
471477

472-
# build:windows_x86_cpu --extra_toolchains="//tensorflow/tools/toolchains/win2022/20241118:cc-toolchain-x64_windows-clang-cl"
473-
# build:windows_x86_cpu --extra_execution_platforms="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
474-
# build:windows_x86_cpu --host_platform="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
475-
build:windows_x86_cpu --crosstool_top="//tensorflow/tools/toolchains/win2022/20241118:toolchain"
476-
build:windows_x86_cpu --extra_toolchains="//tensorflow/tools/toolchains/win2022/20241118:cc-toolchain-x64_windows-clang-cl"
477-
build:windows_x86_cpu --extra_execution_platforms="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
478-
build:windows_x86_cpu --host_platform="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
479-
build:windows_x86_cpu --platforms="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
480-
build:windows_x86_cpu --copt=/clang:-Weverything
481-
build:windows_x86_cpu --host_copt=/clang:-Weverything
482-
build:windows_x86_cpu --compiler=clang-cl
483-
build:windows_x86_cpu --linkopt=/FORCE:MULTIPLE
484-
build:windows_x86_cpu --host_linkopt=/FORCE:MULTIPLE
485-
test:windows_x86_cpu --linkopt=/FORCE:MULTIPLE
486-
test:windows_x86_cpu --host_linkopt=/FORCE:MULTIPLE
487-
test:windows_x86_cpu --action_env=PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
478+
build:windows_x86_cpu_2022 --crosstool_top="//tensorflow/tools/toolchains/win2022/20241118:toolchain"
479+
build:windows_x86_cpu_2022 --extra_toolchains="//tensorflow/tools/toolchains/win2022/20241118:cc-toolchain-x64_windows-clang-cl"
480+
build:windows_x86_cpu_2022 --extra_execution_platforms="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
481+
build:windows_x86_cpu_2022 --host_platform="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
482+
build:windows_x86_cpu_2022 --platforms="//tensorflow/tools/toolchains/win2022:windows_ltsc2022_clang"
483+
build:windows_x86_cpu_2022 --copt=/clang:-Weverything
484+
build:windows_x86_cpu_2022 --host_copt=/clang:-Weverything
485+
build:windows_x86_cpu_2022 --compiler=clang-cl
486+
build:windows_x86_cpu_2022 --linkopt=/FORCE:MULTIPLE
487+
build:windows_x86_cpu_2022 --host_linkopt=/FORCE:MULTIPLE
488+
test:windows_x86_cpu_2022 --linkopt=/FORCE:MULTIPLE
489+
test:windows_x86_cpu_2022 --host_linkopt=/FORCE:MULTIPLE
490+
test:windows_x86_cpu_2022 --action_env=PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
488491

489492
# Options to build TensorFlow 1.x or 2.x.
490493
# TODO(kanglan): Change v2's define to default behavior
@@ -599,6 +602,7 @@ build:rbe_win_clang --host_linkopt=/FORCE:MULTIPLE
599602

600603
# TODO(belitskiy): Rename `rbe_win_clang` to this, once done switching presubmits.
601604
build:rbe_windows_x86_cpu --config=rbe_win_clang
605+
build:rbe_windows_x86_cpu_2022 --config=rbe_win_base --config=windows_x86_cpu_2022
602606

603607
# END TF REMOTE BUILD EXECUTION OPTIONS
604608

@@ -615,7 +619,6 @@ build:elinux_armhf --copt -mfp16-format=ieee
615619

616620
# Load rc file written by ./configure.
617621
try-import %workspace%/.tf_configure.bazelrc
618-
try-import %workspace%/xla_configure.bazelrc
619622

620623
# Load rc file with user-specific options.
621624
try-import %workspace%/.bazelrc.user
@@ -756,7 +759,7 @@ build:tf_public_macos_cache_push --config=tf_public_macos_cache --remote_upload_
756759
# LIBTENSORFLOW TESTS are for building Libtensorflow archives. These are CUDA/CPU-agnostic.
757760
test:linux_libtensorflow_test --config=cuda_wheel -- //tensorflow/tools/lib_package:libtensorflow_test //tensorflow/tools/lib_package:libtensorflow_java_test
758761
build:linux_libtensorflow_build --config=cuda_wheel -- //tensorflow/tools/lib_package:libtensorflow.tar.gz //tensorflow/tools/lib_package:libtensorflow_jni.tar.gz //tensorflow/java:libtensorflow.jar //tensorflow/java:libtensorflow-src.jar //tensorflow/tools/lib_package:libtensorflow_proto.zip
759-
build:windows_libtensorflow_build --config=cuda_wheel --config=windows_x86_cpu -- //:LICENSE //tensorflow:tensorflow.dll //tensorflow:tensorflow_dll_import_lib //tensorflow/tools/lib_package:clicenses_generate //tensorflow/java:tensorflow_jni.dll //tensorflow/tools/lib_package:jnilicenses_generate
762+
build:windows_libtensorflow_build --config=cuda_wheel --config=windows_x86_cpu_2022 -- //:LICENSE //tensorflow:tensorflow.dll //tensorflow:tensorflow_dll_import_lib //tensorflow/tools/lib_package:clicenses_generate //tensorflow/java:tensorflow_jni.dll //tensorflow/tools/lib_package:jnilicenses_generate
760763

761764
# PYTHON TESTS run a suite of Python tests intended for verifying that the Python wheel
762765
# will work properly. These are usually run Nightly or upon Release.
@@ -790,6 +793,8 @@ test:windows_x86_cpu_wheel_test_filters --test_tag_filters=-no_windows,-windows_
790793
test:windows_x86_cpu_wheel_test_filters --build_tag_filters=-no_windows,-windows_excluded,-no_oss,-oss_excluded,-benchmark-test
791794
test:windows_x86_cpu_wheel_test_filters --test_lang_filters=cc,py --test_size_filters=small,medium --test_timeout="300,450,1200,3600"
792795
test:windows_x86_cpu_wheel_test --build_tests_only --config=windows_x86_cpu_pycpp_test_filters -- //tensorflow/... -//tensorflow/java/... -//tensorflow/lite/... -//tensorflow/compiler/...
796+
# TODO(belitskiy): Get rid of once 2019 is shut down
797+
test:windows_x86_cpu_2022_wheel_test --config=windows_x86_cpu_wheel_test
793798

794799
# PYCPP TESTS run a suite of Python and C++ tests to verify general correctness over
795800
# the whole TF code base. These are usually run continuously or upon presubmit.
@@ -846,6 +851,7 @@ test:windows_x86_cpu_pycpp_test_filters --build_tag_filters=-no_windows,-windows
846851
test:windows_x86_cpu_pycpp_test_filters --test_lang_filters=cc,py --test_size_filters=small,medium --test_timeout="300,450,1200,3600"
847852
test:windows_x86_cpu_pycpp_test_opts --config=windows_x86_cpu_pycpp_test_build_opts --build_tests_only
848853
test:windows_x86_cpu_pycpp_test --config=windows_x86_cpu_pycpp_test_opts --config=windows_x86_cpu_pycpp_test_filters -- //tensorflow/... -//tensorflow/java/... -//tensorflow/lite/... -//tensorflow/compiler/...
854+
test:windows_x86_cpu_2022_pycpp_test --config=windows_x86_cpu_pycpp_test
849855

850856
# END TF TEST SUITE OPTIONS
851857

@@ -915,6 +921,3 @@ build:rbe_cross_compile_macos_x86 --jobs=100
915921
test:rbe_cross_compile_macos_x86 --jobs=100
916922
# END MACOS CROSS-COMPILE CONFIGS
917923
# END CROSS-COMPILE CONFIGS
918-
919-
# Try to load the XLA warnings config if available
920-
try-import %workspace%/warnings.bazelrc

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2025 The TensorFlow Authors. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# ============================================================================
15+
16+
blank_issues_enabled: false

.github/workflows/osv-scanner-scheduled.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ permissions:
2828
jobs:
2929
scan-scheduled:
3030
if: github.repository == 'tensorflow/tensorflow'
31-
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v1.9.0"
31+
uses: "google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml@v1.9.2"
3232
with:
3333
scan-args: |-
3434
--lockfile=requirements.txt:./requirements_lock_3_9.txt

.github/workflows/pylint-presubmit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: |
3939
echo Changed files: ${{ steps.get_file_changes.outputs.files }}
4040
- name: Set up Python 3.9
41-
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
41+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
4242
with:
4343
python-version: "3.9"
4444
- name: Install Python dependencies

.github/workflows/release-branch-cherrypick.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
echo "SHORTSHA=$(git log -1 ${{ github.event.inputs.git_commit }} --format="%h")" >> "$GITHUB_OUTPUT"
5959
echo "TITLE=$(git log -1 ${{ github.event.inputs.git_commit }} --format="%s")" >> "$GITHUB_OUTPUT"
6060
- name: Create Pull Request with changes
61-
uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # v7.0.5
61+
uses: peter-evans/create-pull-request@67ccf781d68cd99b580ae25a5c18a1cc84ffff1f # v7.0.6
6262
with:
6363
title: '${{ github.event.inputs.release_branch }} cherry-pick: ${{ steps.cherrypick.outputs.SHORTSHA }} "${{ steps.cherrypick.outputs.TITLE }}"'
6464
committer: TensorFlow Release Automation <jenkins@tensorflow.org>

.github/workflows/scorecards-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
5656
# format to the repository Actions tab.
5757
- name: "Upload artifact"
58-
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
58+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
5959
with:
6060
name: SARIF file
6161
path: results.sarif
@@ -64,6 +64,6 @@ jobs:
6464
# Upload the results to GitHub's code scanning dashboard (optional).
6565
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
6666
- name: "Upload to code-scanning"
67-
uses: github/codeql-action/upload-sarif@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
67+
uses: github/codeql-action/upload-sarif@dd746615b3b9d728a6a37ca2045b68ca76d4841a # v3.28.8
6868
with:
6969
sarif_file: results.sarif

.github/workflows/sigbuild-docker-branch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4444
-
4545
name: Set up Docker Buildx
46-
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
46+
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
4747
-
4848
name: Login to DockerHub
4949
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
@@ -67,7 +67,7 @@ jobs:
6767
-
6868
name: Build and push
6969
id: docker_build
70-
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
70+
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0
7171
with:
7272
push: true
7373
context: ./tensorflow/tools/tf_sig_build_dockerfiles

.github/workflows/sigbuild-docker-presubmit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4848
-
4949
name: Set up Docker Buildx
50-
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
50+
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
5151
-
5252
name: Login to GCR
5353
if: contains(github.event.pull_request.labels.*.name, 'build and push to gcr.io for staging')
@@ -73,7 +73,7 @@ jobs:
7373
-
7474
name: Build containers, and push to GCR only if the 'build and push to gcr.io for staging' label is applied
7575
id: docker_build
76-
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
76+
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0
7777
with:
7878
push: ${{ contains(github.event.pull_request.labels.*.name, 'build and push to gcr.io for staging') }}
7979
context: ./tensorflow/tools/tf_sig_build_dockerfiles

.github/workflows/sigbuild-docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4747
-
4848
name: Set up Docker Buildx
49-
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
49+
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3.8.0
5050
-
5151
name: Login to DockerHub
5252
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
@@ -82,7 +82,7 @@ jobs:
8282
-
8383
name: Build and push
8484
id: docker_build
85-
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
85+
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6.13.0
8686
with:
8787
push: true
8888
context: ./tensorflow/tools/tf_sig_build_dockerfiles

.github/workflows/stale-issues.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
pull-requests: write
3232
steps:
3333
- name: Awaiting response issues
34-
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
34+
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
3535
with:
3636
#Comma separated list of labels that can be assigned to issues to exclude them from being marked as stale
3737
exempt-issue-labels: 'override-stale'
@@ -59,7 +59,7 @@ jobs:
5959
close-pr-message: "This PR was closed because it has been inactive for 14 days since being marked as stale. Please reopen if you'd like to work on this further."
6060
repo-token: ${{ secrets.GITHUB_TOKEN }}
6161
- name: Contribution issues
62-
uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0
62+
uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9.1.0
6363
with:
6464
#Comma separated list of labels that can be assigned to issues to exclude them from being marked as stale
6565
exempt-issue-labels: 'override-stale'

0 commit comments

Comments
 (0)