Skip to content

Commit a51d22d

Browse files
authored
Merge branch 'tensorflow:master' into master
2 parents 1393d12 + 6a254a4 commit a51d22d

File tree

744 files changed

+21486
-5013
lines changed

Some content is hidden

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

744 files changed

+21486
-5013
lines changed

.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ build:tf_public_macos_cache_push --config=tf_public_macos_cache --remote_upload_
755755
# LIBTENSORFLOW TESTS are for building Libtensorflow archives. These are CUDA/CPU-agnostic.
756756
test:linux_libtensorflow_test --config=cuda_wheel -- //tensorflow/tools/lib_package:libtensorflow_test //tensorflow/tools/lib_package:libtensorflow_java_test
757757
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
758-
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
758+
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
759759

760760
# PYTHON TESTS run a suite of Python tests intended for verifying that the Python wheel
761761
# will work properly. These are usually run Nightly or upon Release.

ci/official/envs/windows_x86_2022

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ TFCI_DOCKER_IMAGE="gcr.io/tensorflow-testing/tf-win2022@sha256:915cb093630432c38
1818
TFCI_BAZEL_BAZELRC_ARGS="--output_user_root=C:/t"
1919
TFCI_BAZEL_COMMON_ARGS="--repo_env=HERMETIC_PYTHON_VERSION=$TFCI_PYTHON_VERSION --config=windows_x86_cpu_2022"
2020
TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX=windows_x86_cpu_2022
21+
TFCI_BUILD_PIP_PACKAGE_ARGS="--repo_env=WHEEL_NAME=tensorflow_cpu"
2122
TFCI_OUTPUT_DIR=build_output
2223
TFCI_FIND_BIN=C:/tools/msys64/usr/bin/find.exe
2324
TFCI_LIB_SUFFIX="-cpu-windows-x86_64"

ci/official/libtensorflow.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ fi
2222

2323
# Update the version numbers for Nightly only
2424
if [[ "$TFCI_NIGHTLY_UPDATE_VERSION_ENABLE" == 1 ]]; then
25-
tfrun python3 tensorflow/tools/ci_build/update_version.py --nightly
25+
python_bin=python3
26+
# TODO(belitskiy): Add a `python3` alias/symlink to Windows Docker image.
27+
if [[ $(uname -s) = MSYS_NT* ]]; then
28+
python_bin="python"
29+
fi
30+
tfrun "$python_bin" tensorflow/tools/ci_build/update_version.py --nightly
2631
fi
2732

2833
if [[ $(uname -s) != MSYS_NT* ]]; then
@@ -36,5 +41,10 @@ tfrun bash ./ci/official/utilities/repack_libtensorflow.sh "$TFCI_OUTPUT_DIR" "$
3641

3742
if [[ "$TFCI_ARTIFACT_STAGING_GCS_ENABLE" == 1 ]]; then
3843
# Note: -n disables overwriting previously created files.
39-
gsutil cp "$TFCI_OUTPUT_DIR"/*.tar.gz "$TFCI_ARTIFACT_STAGING_GCS_URI"
44+
# TODO(b/389744576): Remove when gsutil is made to work properly on MSYS2.
45+
if [[ $(uname -s) != MSYS_NT* ]]; then
46+
gsutil cp "$TFCI_OUTPUT_DIR"/*.tar.gz "$TFCI_ARTIFACT_STAGING_GCS_URI"
47+
else
48+
powershell -command "gsutil cp '$TFCI_OUTPUT_DIR/*.zip' '$TFCI_ARTIFACT_STAGING_GCS_URI'"
49+
fi
4050
fi

ci/official/wheel.sh

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ fi
2222

2323
# Update the version numbers for Nightly only
2424
if [[ "$TFCI_NIGHTLY_UPDATE_VERSION_ENABLE" == 1 ]]; then
25-
tfrun python3 tensorflow/tools/ci_build/update_version.py --nightly
25+
python_bin=python3
26+
# TODO(belitskiy): Add a `python3` alias/symlink to Windows Docker image.
27+
if [[ $(uname -s) = MSYS_NT* ]]; then
28+
python_bin="python"
29+
fi
30+
tfrun "$python_bin" tensorflow/tools/ci_build/update_version.py --nightly
2631
# replace tensorflow to tf_nightly in the wheel name
2732
export TFCI_BUILD_PIP_PACKAGE_ARGS="$(echo $TFCI_BUILD_PIP_PACKAGE_ARGS | sed 's/tensorflow/tf_nightly/')"
2833
fi
@@ -42,7 +47,12 @@ tfrun bash ./ci/official/utilities/rename_and_verify_wheels.sh
4247

4348
if [[ "$TFCI_ARTIFACT_STAGING_GCS_ENABLE" == 1 ]]; then
4449
# Note: -n disables overwriting previously created files.
45-
gsutil cp -n "$TFCI_OUTPUT_DIR"/*.whl "$TFCI_ARTIFACT_STAGING_GCS_URI"
50+
# TODO(b/389744576): Remove when gsutil is made to work properly on MSYS2.
51+
if [[ $(uname -s) != MSYS_NT* ]]; then
52+
gsutil cp -n "$TFCI_OUTPUT_DIR"/*.whl "$TFCI_ARTIFACT_STAGING_GCS_URI"
53+
else
54+
powershell -command "gsutil cp -n '$TFCI_OUTPUT_DIR/*.whl' '$TFCI_ARTIFACT_STAGING_GCS_URI'"
55+
fi
4656
fi
4757

4858
if [[ "$TFCI_WHL_BAZEL_TEST_ENABLE" == 1 ]]; then

tensorflow/c/eager/parallel_device/parallel_device.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@ limitations under the License.
1515

1616
#include "tensorflow/c/eager/parallel_device/parallel_device.h"
1717

18-
#include <cstring>
18+
#include <cstdint>
1919
#include <memory>
20+
#include <string>
21+
#include <utility>
22+
#include <vector>
2023

2124
#include "absl/status/status.h"
2225
#include "absl/strings/str_cat.h"

tensorflow/c/eager/parallel_device/parallel_device_lib.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ limitations under the License.
1515

1616
#include "tensorflow/c/eager/parallel_device/parallel_device_lib.h"
1717

18+
#include <cstdint>
19+
#include <functional>
20+
#include <memory>
1821
#include <string>
1922
#include <utility>
23+
#include <vector>
2024

2125
#include "absl/memory/memory.h"
2226
#include "absl/status/status.h"

tensorflow/c/eager/parallel_device/parallel_device_lib.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ limitations under the License.
1616
#ifndef TENSORFLOW_C_EAGER_PARALLEL_DEVICE_PARALLEL_DEVICE_LIB_H_
1717
#define TENSORFLOW_C_EAGER_PARALLEL_DEVICE_PARALLEL_DEVICE_LIB_H_
1818

19+
#include <cstddef>
20+
#include <cstdint>
1921
#include <memory>
2022
#include <optional>
2123
#include <string>

tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ limitations under the License.
1515

1616
#include "tensorflow/c/eager/parallel_device/parallel_device_lib.h"
1717

18+
#include <cstdint>
19+
#include <memory>
20+
#include <string>
21+
#include <utility>
22+
#include <vector>
23+
1824
#include <gmock/gmock.h>
1925
#include "absl/status/status.h"
2026
#include "tensorflow/c/c_api_experimental.h"

tensorflow/c/eager/parallel_device/parallel_device_test.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ limitations under the License.
1414
==============================================================================*/
1515

1616
#include <array>
17+
#include <memory>
18+
#include <string>
19+
#include <vector>
1720

1821
#include <gmock/gmock.h>
1922
#include "tensorflow/c/c_api.h"

tensorflow/c/eager/tape.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ class GradientTape {
174174
// is set to false.
175175
absl::Status ComputeGradient(
176176
const VSpace<Gradient, BackwardFunction, TapeTensor>& vspace,
177-
const absl::Span<const int64_t> target_tensor_ids,
178-
const absl::Span<const int64_t> source_tensor_ids,
177+
absl::Span<const int64_t> target_tensor_ids,
178+
absl::Span<const int64_t> source_tensor_ids,
179179
const std::unordered_map<int64, TapeTensor>& sources_that_are_targets,
180180
gtl::ArraySlice<Gradient*> output_gradients, absl::Span<Gradient*> result,
181181
bool build_default_zeros_grads = true);

0 commit comments

Comments
 (0)