Change8

v2.21.0-rc0

Breaking Changes
📦 tensorflowView on GitHub →
1 breaking8 features🐛 1 fixes🔧 7 symbols

Summary

Release 2.21.0 removes support for Python 3.9 and introduces significant quantization and data type support enhancements in tf.lite, alongside JPEG XL support in tf.image.

⚠️ Breaking Changes

  • Support for Python 3.9 has been removed starting with TF 2.21.

Migration Steps

  1. If you rely on Python 3.9, you must upgrade your environment to Python 3.10 or newer.

✨ New Features

  • tf.lite: Adds int8 and int16x8 support for SQRT operator.
  • tf.lite: Adds int16x8 support for EQUAL and NOT_EQUAL operators.
  • tf.lite: Adds support for int2 type.
  • tf.lite: Adds support for int2/int4 in tfl.cast.
  • tf.lite: Adds support for SRQ int2 in tfl.fully_connected.
  • tf.lite: Adds support for int4 in tfl.slice.
  • tf.lite: Adds support for uint4 type.
  • tf.image: Adds JPEG XL support in decode_image.

🐛 Bug Fixes

  • tf.data: Adds `NoneTensorSpec` to the public API so that `None`s in `element_spec` can be identified via `isinstance(..., tf.NoneTensorSpec)`.

Affected Symbols