-
Notifications
You must be signed in to change notification settings - Fork 677
Migrate from tensorflow-lite
to litert
#11204
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Diffuse output:
APK
|
2 builds increased size, 1 build decreased size
Stripe Identity Example 21.21.0-theme1 (20)
|
Item | Install Size Change | Download Size Change |
---|---|---|
libtensorflowlite_jni.so | ⬆️ 651.6 kB | ⬆️ 327.0 kB |
org.tensorflow.lite.support.tensorbuffer.TensorBufferFloat | ⬆️ 3.1 kB | ⬆️ 1.5 kB |
📝 androidx.compose.runtime.ComposerImpl$$ExternalSyntheticOutline0 | ⬆️ 2.4 kB | ⬆️ 1.1 kB |
🗑 androidx.compose.runtime.ComposerImpl$$ExternalSyntheticOutline1 | ⬇️ -2.2 kB | ⬇️ -1.1 kB |
🗑 org.tensorflow.lite.support.tensorbuffer.TensorBuffer | ⬇️ -2.1 kB | ⬇️ -1.0 kB |
Financial Connections Example 21.21.0 (212100)
com.stripe.android.financialconnections.example
⚖️ Compare build
⏱️ Analyze build performance
Total install size change: 0 B
Total download size change: ⬆️ 2 B
Largest size changes
Item | Install Size Change | Download Size Change |
---|---|---|
Other | ⬆️ 0 B | ⬆️ 2 B |
PaymentSheet Example 21.21.0 (11)
com.stripe.android.paymentsheet.example
⚖️ Compare build
⏱️ Analyze build performance
Total install size change: 0 B
Total download size change: ⬇️ 1 B
Largest size changes
Item | Install Size Change | Download Size Change |
---|---|---|
Other | ⬇️ 0 B | ⬇️ -1 B |
🛸 Powered by Emerge Tools
Comment trigger: Size diff threshold of 100.00kB exceeded
Pretty big size increase for the Identity example app with the tflite.jni update. This can be optimized by merchants if they pull in the support via Google Play.
No need to upgrade our play services libraries for TFLite since we are already on
|
6e265ce
to
85de622
Compare
85de622
to
b96d0c0
Compare
b96d0c0
to
fd9cb04
Compare
Summary
Migrate from
tensorflow-lite
tolitert
Motivation
litert
is where most TFLite development for Android has moved. Same APIs and has 16kb support.Note: This doesn't fix 16kb page size support for other architectures for
stripecardscan
. We either need to rebuild the smaller AARs withlitert
or migrate completely away from them to the full library.Testing