Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tensorflow/text
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e8377dc
Choose a base ref
...
head repository: tensorflow/text
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 8018370
Choose a head ref
  • 7 commits
  • 57 files changed
  • 6 contributors

Commits on Jul 10, 2026

  1. 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>
    rtg0795 and cantonios authored Jul 10, 2026
    Configuration menu
    Copy the full SHA
    3bf67ea View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2026

  1. Update TensorFlow Text build scripts for newer manylinux

    PiperOrigin-RevId: 949606721
    tf-text-github-robot authored and rtg0795 committed Jul 21, 2026
    Configuration menu
    Copy the full SHA
    84f74cc View commit details
    Browse the repository at this point in the history
  2. Register ARM64 toolchain in WORKSPACE to fix build errors

    PiperOrigin-RevId: 951572341
    tf-text-github-robot authored and rtg0795 committed Jul 21, 2026
    Configuration menu
    Copy the full SHA
    4bc8b7d View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2026

  1. 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: 967966028
    gasanov-netizen committed Aug 20, 2026
    Configuration menu
    Copy the full SHA
    4819dd7 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1540 from gasanov-netizen/2.21

    Reduce TF-Text wheel size by filtering ICU 77 data
    cantonios authored Aug 20, 2026
    Configuration menu
    Copy the full SHA
    8c9b386 View commit details
    Browse the repository at this point in the history

Commits on Aug 24, 2026

  1. 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
    dmiltr3 committed Aug 24, 2026
    Configuration menu
    Copy the full SHA
    c42d497 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1543 from dmiltr3/fix-icu-undefined-symbol-2.21

    Exclude stubdata and i18n BUILD.bazel from ICU 77 repository archive
    cantonios authored Aug 24, 2026
    Configuration menu
    Copy the full SHA
    8018370 View commit details
    Browse the repository at this point in the history
Loading