Change8

Migrating to TensorFlow v2.19.0-rc0

Version v2.19.0-rc0 introduces 2 breaking changes. This guide details how to update your code.

Released: 2/24/2025

2
Breaking Changes
2
Migration Steps
5
Affected Symbols

⚠️ Check Your Code

If you use any of these symbols, you need to read this guide:

tflite::Interpreter::kTensorsReservedCapacitytflite::Interpreter::kTensorsCapacityHeadroomtf.lite.Interpreterai_edge_litert.interpretertfl.Cast

Breaking Changes

Issue #1

The public constants tflite::Interpreter::kTensorsReservedCapacity and tflite::Interpreter::kTensorsCapacityHeadroom are now const references instead of constexpr, breaking code that expects compile‑time constants.

Issue #2

tf.lite.Interpreter now emits a deprecation warning and will be removed in TensorFlow 2.20; code must import ai_edge_litert.interpreter instead.

Migration Steps

  1. 1
    Replace imports of tf.lite.Interpreter with ai_edge_litert.interpreter as described in the migration guide.
  2. 2
    If code relied on the constexpr values of tflite::Interpreter::kTensorsReservedCapacity or kTensorsCapacityHeadroom, update it to use the new const reference values (e.g., access them at runtime rather than as compile‑time constants).

Release Summary

TensorFlow 2.19.0 adds bfloat16 support for the tfl.Cast op, deprecates tf.lite.Interpreter in favor of ai_edge_litert.interpreter, and changes two interpreter constants to const references, requiring code updates.

Need More Details?

View the full release notes and all changes for TensorFlow v2.19.0-rc0.

View Full Changelog