-
Notifications
You must be signed in to change notification settings - Fork 74.8k
Description
Issue type
Support
Source
Maven
TensorFlow version
org.tensorflow:tensorflow-lite-task-audio:0.4.4
Custom code
No
OS platform and distribution
Android Maven distribution
Current behavior?
The libtask_audio_jni.so
library in org.tensorflow:tensorflow-lite-task-audio:0.4.4
does not support 16kb page alignment which is required for our app android with a hard deadline of 1st November.
see : https://developer.android.com/guide/practices/page-sizes
I am aware that TensorFlow Lite has been migrated to LiteRT but the TensorFlow Lite tasks have not and their future is sort of unclear at this moment.
Migration blog post : https://developers.googleblog.com/en/tensorflow-lite-is-now-litert/
While the blog post for the migrations does not clear the tasks's future it recommends to use MediaPipe instead. But on trying MediaPipe Library the com.google.mediapipe:tasks-audio
lib is also not 16kb aligned.
So can you please provide clarity on the future of Audio classification tasks. Which of these 2 will be get the 16kb alignment.
Standalone code to reproduce the issue
add dependency for org.tensorflow:tensorflow-lite-task-audio:0.4.4 and try and build a sample app. Build shows warning for 16kb page alignment requirement not being met.
implementation("org.tensorflow:tensorflow-lite-task-audio:0.4.4")
OR
add dependency for com.google.mediapipe:tasks-audio:latest.release and try and build a sample app. Build shows warning for 16kb page alignment requirement not being met.
implementation("com.google.mediapipe:tasks-audio:latest.release")
PS : Please don't close it and mark it as same as #96602 since now you can use LiteRT instead of TensorFlow lite which support 16kb but incase of TensorFlow lite tasks there is no clarity.