Skip to content

Conversation

@aicelen
Copy link
Contributor

@aicelen aicelen commented Sep 26, 2025

Hey!
Tensorflow 2.20 deleted tf.lite.Interpreter and should be replaced with ai_edge_litert. Sadly, LiteRT is only prebuild for Linux and MacOS, not Windows. This PR replaces the tf.lite.Interpreter with ai_edge.litert.interpreter.Interpreter (for MacOS and Linux).
LiteRT has got a smaller size and faster importing compared to tensorflow. Here's the migration guide of LiteRT: https://ai.google.dev/edge/litert/migration.

I also added # type: ignore for imports on ios and android.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant