Skip to content

Commit f1d12ee

Browse files
authored
Relax TensorFlow constraints and update text (keras-team#2630)
Remove strict ~=2.19 pins for tensorflow/tensorflow-cpu (and for tensorflow[and-cuda]) and replace tensorflow-text~=2.19 with tensorflow-text>=2.20.1. Applied to requirements-jax-cuda.txt, requirements-tensorflow-cuda.txt, requirements-torch-cuda.txt, and requirements.txt to allow newer TF releases and ensure tensorflow-text compatibility; platform-specific markers and PyTorch index URLs are preserved.
1 parent eb30b35 commit f1d12ee

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

requirements-jax-cuda.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Tensorflow cpu-only version.
2-
tensorflow-cpu~=2.19
3-
tensorflow-text~=2.19
2+
tensorflow-cpu
3+
tensorflow-text>=2.20.1
44

55
# Torch cpu-only version.
66
--extra-index-url https://download.pytorch.org/whl/cpu

requirements-tensorflow-cuda.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Tensorflow with cuda support.
2-
tensorflow[and-cuda]~=2.19
3-
tensorflow-text~=2.19
2+
tensorflow[and-cuda]
3+
tensorflow-text>=2.20.1
44

55
# Torch cpu-only version.
66
--extra-index-url https://download.pytorch.org/whl/cpu

requirements-torch-cuda.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Tensorflow cpu-only version.
2-
tensorflow-cpu~=2.19
3-
tensorflow-text~=2.19
2+
tensorflow-cpu
3+
tensorflow-text>=2.20.1
44

55
# Torch with cuda support.
66
--extra-index-url https://download.pytorch.org/whl/cu126

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Tensorflow.
2-
tensorflow-cpu~=2.19.0;sys_platform != 'darwin'
3-
tensorflow~=2.19.0;sys_platform == 'darwin'
4-
tensorflow-text~=2.19;platform_system != 'Windows'
2+
tensorflow-cpu;sys_platform != 'darwin'
3+
tensorflow;sys_platform == 'darwin'
4+
tensorflow-text>=2.20.1;platform_system != 'Windows'
55

66
# Torch.
77
--extra-index-url https://download.pytorch.org/whl/cpu

0 commit comments

Comments
 (0)