-
Notifications
You must be signed in to change notification settings - Fork 378
Comparing changes
Open a pull request
base repository: tensorflow/text
base: master
head repository: tensorflow/text
compare: 2.21
- 7 commits
- 57 files changed
- 6 contributors
Commits on Jul 10, 2026
-
Upgrade TensorFlow to 2.21.0 and fix build dependencies (#1528)
1. **TensorFlow Upgrade to v2.21.0 & Toolchain Adjustments** * Upgraded the `@org_tensorflow` dependency from `2.20.0` to `2.21.0`. * Reordered repository initialization in `WORKSPACE` so `tf_workspace3` runs before hermetic Python initialization (required by TF 2.21+ to define `@xla` and `@tsl`). * Dropped support for Python 3.9 (removed `requirements_lock_3_9.txt`). * Consolidated multiple separate `pywrap` dependencies under a unified `//tensorflow_text/core/pybinds:pybinds_library` target. * Applied necessary compilation patches to various TensorFlow subsystems (framework, common runtime, grappler optimizers, device set, etc.). * Updated `@local_xla` references to `@xla`. 2. **Kernel Test Dependency Cleanup** * Removed redundant `_for_test` wrapper libraries in `tensorflow_text/core/kernels/BUILD` (such as `constrained_sequence_op_for_test` and `ngrams_op_for_test`). * Updated C++ unit tests to link directly against standard op C++ libraries (e.g., `//tensorflow_text:constrained_sequence_op_cc`), eliminating duplicate global initializer linkage conflicts. 3. **Pip/Configure Script Fixes** * Explicitly imported `compile_pip_requirements` from `@rules_python//python:pip.bzl` in `oss_scripts/pip_package/BUILD` to resolve dependency resolution errors during configuration. --------- Co-authored-by: Antonio Sanchez <cantonios@google.com>
Configuration menu - View commit details
-
Copy full SHA for 3bf67ea - Browse repository at this point
Copy the full SHA 3bf67eaView commit details
Commits on Jul 21, 2026
-
Update TensorFlow Text build scripts for newer manylinux
PiperOrigin-RevId: 949606721
Configuration menu - View commit details
-
Copy full SHA for 84f74cc - Browse repository at this point
Copy the full SHA 84f74ccView commit details -
Register ARM64 toolchain in WORKSPACE to fix build errors
PiperOrigin-RevId: 951572341
Configuration menu - View commit details
-
Copy full SHA for 4bc8b7d - Browse repository at this point
Copy the full SHA 4bc8b7dView commit details
Commits on Aug 20, 2026
-
Reduce TF-Text wheel size by filtering ICU 77 data and stripping bina…
…ries. - Regenerate `normalization_data.c.oss` using ICU 77.1 with `filters.json` enabled ("normalization": "include") rather than bundling the entire unfiltered ICU data archive. This reduces the source data file from ~91 MB to ~616 KB (and compiled in-binary `.rodata` from ~32 MB to ~220 KB across dependent shared libraries). - Add shared library symbol stripping (`strip -x` on macOS, `strip --strip-unneeded` on Linux) in `build_pip_package.py` to eliminate unnecessary DWARF debug sections and local symbol tables from wheels. - Drops the final `.whl` package size from ~60-95 MB down to ~5-7 MB, resolving PyPI upload limits. PiperOrigin-RevId: 967966028Configuration menu - View commit details
-
Copy full SHA for 4819dd7 - Browse repository at this point
Copy the full SHA 4819dd7View commit details -
Merge pull request #1540 from gasanov-netizen/2.21
Reduce TF-Text wheel size by filtering ICU 77 data
Configuration menu - View commit details
-
Copy full SHA for 8c9b386 - Browse repository at this point
Copy the full SHA 8c9b386View commit details
Commits on Aug 24, 2026
-
Exclude stubdata and i18n BUILD.bazel from ICU 77 repository archive
In ICU 77, BUILD.bazel files were added upstream under icu4c/source/stubdata/ and icu4c/source/i18n/. Because custom_http_archive only excluded icu4c/source/common/BUILD.bazel, Bazel treated icu4c/source/stubdata/ as a separate package, preventing glob(["icu4c/source/stubdata/*.cpp"]) in //third_party/icu:BUILD.bzl from matching stubdata.cpp. Consequently, U_ICUDATA_ENTRY_POINT (icudt77_dat) was omitted from the build, resulting in undefined symbol errors upon importing tensorflow_text. Excluding stubdata/BUILD.bazel and i18n/BUILD.bazel and including stubdata/*.h in hdrs allows stubdata to be cleanly compiled into icuuc, resolving icudt77_dat. Fixes #1541
Configuration menu - View commit details
-
Copy full SHA for c42d497 - Browse repository at this point
Copy the full SHA c42d497View commit details -
Merge pull request #1543 from dmiltr3/fix-icu-undefined-symbol-2.21
Exclude stubdata and i18n BUILD.bazel from ICU 77 repository archive
Configuration menu - View commit details
-
Copy full SHA for 8018370 - Browse repository at this point
Copy the full SHA 8018370View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...2.21