Skip to content

Commit d244528

Browse files
iindyktfx-copybara
authored andcommitted
Upgrades TF dependency to 2.10.
Also syncing build flags with TF 2.10 and bazel version check with what we have in .bazelversion file. PiperOrigin-RevId: 473771192
1 parent 626c08a commit d244528

File tree

4 files changed

+12
-9
lines changed

4 files changed

+12
-9
lines changed

.bazelrc

+6-5
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,14 @@ common --experimental_repo_remote_exec
3434
build:linux --copt=-w
3535
build:macos --copt=-w
3636

37-
# By default, build TF in C++ 14 mode.
38-
build:linux --cxxopt=-std=c++14
37+
# By default, build TF in C++ 17 mode.
38+
build:linux --cxxopt=-std=c++17
3939
build:linux --cxxopt=-D_GLIBCXX_USE_CXX11_ABI=1
40-
build:linux --host_cxxopt=-std=c++14
41-
build:macos --cxxopt=-std=c++14
40+
build:linux --host_cxxopt=-std=c++17
41+
build:macos --cxxopt=-std=c++17
4242
build:macos --cxxopt=-D_GLIBCXX_USE_CXX11_ABI=1
43-
build:macos --host_cxxopt=-std=c++14
43+
build:macos --host_cxxopt=-std=c++17
44+
4445

4546
# Suppress all warning messages.
4647
build:short_logs --output_filter=DONT_MATCH_ANYTHING

RELEASE.md

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
## Bug Fixes and Other Changes
88

9+
* Depends on `tensorflow>=2.10.0,<2.11`.
10+
911
## Deprecations
1012

1113
## Breaking Changes

WORKSPACE

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ tf_configure(name = "local_config_tf")
4141
# 3. Request the new archive to be mirrored on mirror.bazel.build for more
4242
# reliable downloads.
4343

44-
_TENSORFLOW_GIT_COMMIT = "8a20d54a3c1bfa38c03ea99a2ad3c1b0a45dfa95" # tf 2.9.0
45-
_TENSORFLOW_ARCHIVE_SHA256 = "5b3cde72888d680e4b6162351d614d6ac2d3ef44032e91b5838a9647ecc387a6"
44+
_TENSORFLOW_GIT_COMMIT = "359c3cdfc5fabac82b3c70b3b6de2b0a8c16874f" # tf 2.10.0
45+
_TENSORFLOW_ARCHIVE_SHA256 = "bc4e9bbeb0136163f283ab8b695bec747cad738963e153ce3b7e414ebffe408f"
4646

4747
http_archive(
4848
name = "org_tensorflow",
@@ -84,4 +84,4 @@ rules_pkg_dependencies()
8484

8585
# Specify the minimum required bazel version.
8686
load("@org_tensorflow//tensorflow:version_check.bzl", "check_bazel_version_at_least")
87-
check_bazel_version_at_least("3.7.2")
87+
check_bazel_version_at_least("5.1.1")

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def select_constraint(default, nightly=None, git_master=None):
7575
packages=find_packages(),
7676
install_requires=[
7777
'protobuf>=3.13,<4',
78-
'tensorflow>=2.9.0,<2.10',
78+
'tensorflow>=2.10.0,<2.11',
7979
'tensorflow-metadata' + select_constraint(
8080
default='>=1.10.0,<1.11.0',
8181
nightly='>=1.11.0.dev',

0 commit comments

Comments
 (0)