Commit 3121339
Bump tested versions to TensorFlow 2.21.0 / Keras 3.14.0 (#464)
* Bump tested versions to TensorFlow 2.21.0 / Keras 3.14.0
Update CI pin and the README's documented tested versions, and accept
the renamed Threshold layer config keys (threshold_value -> threshold,
value -> default_value) so models exported from Keras 3.14 load.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Bump TensorFlow to 2.21.0 in the perf-test Dockerfile
Also pin keras==3.14.0 explicitly so the perf-test image matches the
versions pinned in CI rather than relying on whatever Keras the
TensorFlow wheel happens to pull in.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Update perf-test Dockerfile to build TF 2.21 from source
TF 2.21's .bazelrc uses --enable_workspace, which requires Bazel 7+, so
bump the pinned bazel from 6.5.0 to 7.7.0 (matches TF 2.21's
.bazelversion). Also install xxd, which TF's XLA genrules now invoke
during the build.
Verified by running docker build of test/Dockerfile end-to-end: TF
wheel builds, save_application_examples.py converts all Keras
Application models, applications_performance loads and benchmarks them.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Bump CI runner image to ubuntu-24.04
keras==3.14.0 requires Python >=3.11; the ubuntu-22.04 runner ships
Python 3.10. Use ubuntu-24.04 (Python 3.12) so pip can resolve the
pinned version.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Add --break-system-packages to CI pip installs
Ubuntu 24.04 ships a PEP 668 externally-managed Python where system-wide
pip installs are blocked unless the flag is set, even from a sudo
shell. Required after the runner bump.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Drop redundant pip self-upgrade in CI
Ubuntu 24.04 ships pip 24.0, which already handles the TF 2.21 and
Keras 3.14 wheels. The self-upgrade step also runs into PEP 668's
RECORD-file check on apt-installed pip, so removing it both simplifies
setup and avoids that quirk.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Add --ignore-installed to CI pip install
Some apt-shipped Python packages on the ubuntu-24.04 runner (e.g.
python3-typing-extensions) lack RECORD files, so pip refuses to
uninstall them when a newer version is needed. Tell pip to overlay
the requested versions without uninstalling, mirroring how other CI
runners on PEP 668 systems handle this.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 9bf54fc commit 3121339
4 files changed
Lines changed: 18 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
16 | | - | |
| 15 | + | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
| 140 | + | |
| 141 | + | |
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1037 | 1037 | | |
1038 | 1038 | | |
1039 | 1039 | | |
1040 | | - | |
1041 | | - | |
| 1040 | + | |
| 1041 | + | |
| 1042 | + | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
1042 | 1048 | | |
1043 | 1049 | | |
1044 | 1050 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments