Skip to content
Discussion options

You must be logged in to vote

onnxruntime 1.27.0 is now supported on Android and iOS: https://pypi.flet.dev/onnxruntime

It's a CPU-only build — the CPU execution provider (MLAS, NEON-optimized). The NNAPI (Android) and CoreML (iOS) accelerator backends are off in this first release, which keeps Android and iOS running the exact same dependable baseline. Everything runs offline; the only network you need is a one-time model download.

Install

Add it to your deps:

# pyproject.toml
dependencies = [
    "flet",
    "onnxruntime",
    "numpy",
]

Note this is 64-bit only (arm64-v8a / x86_64) — wheels for armeabi-v7a arch/devices aren't built (at least, for now). To prevent your Android builds from failing, you will have to e…

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@ap4499
Comment options

Comment options

You must be logged in to vote
1 reply
@SamYuan1990
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ndonkoHenri
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants