Change8

Migrating to TensorFlow v2.18.1

Version v2.18.1 introduces 2 breaking changes. This guide details how to update your code.

Released: 3/11/2025

2
Breaking Changes
2
Migration Steps
2
Affected Symbols

⚠️ Check Your Code

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

tf.lite.Interpreterai_edge_litert.interpreter

Breaking Changes

Issue #1

`tf.lite.Interpreter` is deprecated and will be removed; it now redirects to `ai_edge_litert.interpreter`. Update imports to the new location.

Issue #2

Tensorflow‑tpu support is omitted in this patch due to sparsecore bugs; upgrade to version 2.19.0 for TPU functionality.

Migration Steps

  1. 1
    Replace any usage of `tf.lite.Interpreter` with `ai_edge_litert.interpreter` as described in the migration guide https://ai.google.dev/edge/litert/migration.
  2. 2
    If you rely on Tensorflow‑tpu, skip this 2.18.1 patch and upgrade directly to 2.19.0.

Release Summary

This patch updates curl for security, loosens the ml_dtypes version bound, and deprecates tf.lite.Interpreter in favor of ai_edge_litert.interpreter, while dropping TPU support until 2.19.0.

Need More Details?

View the full release notes and all changes for TensorFlow v2.18.1.

View Full Changelog