Skip to content

Commit e50a154

Browse files
iindyktfx-copybara
authored andcommitted
Updating tensorflow dependency to >=2.12,<3 and protobuf to >=3.20.3,<5.
TF 2.12 updated their packaged protobuf C++ dependency to 3.21.9 making it incompatible with our packaged build in TFMD and s2t. Python's protobuf version 3.20.3 is the minimal version compatible with the new build and python 3.10. In general this protobuf bound lets TF dictate the version. This should fix our builds against released and nightly TF. PiperOrigin-RevId: 522143653
1 parent 7de710f commit e50a154

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

RELEASE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717
## Bug Fixes and Other Changes
1818

1919
* Depends on `numpy~=1.22.0`.
20+
* Depends on `tensorflow>=2.12.0,<2.13`.
21+
* Depends on `protobuf>=3.20.3,<5`.
2022

2123
## Breaking Changes
2224

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ def _make_required_install_packages():
4545
'absl-py>=0.9,<2.0.0',
4646
'apache-beam[gcp]>=2.41,<3',
4747
'numpy~=1.22.0',
48-
'protobuf>=3.13,<4',
48+
'protobuf>=3.20.3,<5',
4949
'pyarrow>=6,<7',
5050
'pydot>=1.2,<2',
5151
# pylint: disable=line-too-long
52-
'tensorflow' + select_constraint('>=2.11.0,<2.12'),
52+
'tensorflow>=2.12,<3',
5353
# pylint: enable=line-too-long
5454
'tensorflow-metadata' + select_constraint(
5555
default='>=1.12.0,<1.13.0',

0 commit comments

Comments
 (0)