[Mobile] Android/Kotlin/JAVA Multi Threading for Multi models in android app #21289
Labels
api:Java
issues related to the Java API
platform:mobile
issues related to ONNX Runtime mobile; typically submitted using template
stale
issues that have not been addressed in a while; categorized by a bot
Describe the issue
There are no example about Multi-threading on android device regarding of using multiple models
To reproduce
N/A
Urgency
I really need it ASAP please help :(((
Platform
Android
OS Version
12
ONNX Runtime Installation
Built from Source
Compiler Version (if 'Built from Source')
No response
Package Name (if 'Released Package')
onnxruntime-android
ONNX Runtime Version or Commit ID
com.microsoft.onnxruntime:onnxruntime-android:latest.release
ONNX Runtime API
Java/Kotlin
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response
I am trying to use two models on android for inference but wanna make them run parallel.
Above code is that I made 2 seperate sessions for two different models but now Im running them in serial which is very inefficient.
Can I get an example of how to do Multi-thread on android and run two models in parallel?
The text was updated successfully, but these errors were encountered: