[Mobile] How to use GPU acceleration on Android #23194
Labels
api:Java
issues related to the Java API
platform:mobile
issues related to ONNX Runtime mobile; typically submitted using template
Describe the issue
How to use GPU acceleration on Android?The detector model is now too slow to predict!
To reproduce
this.context = context;
env = OrtEnvironment.getEnvironment();
session = env.createSession(modelPath, sessionOptions);
inputTensor = OnnxTensor.createTensor(env, inputBuffer, new long[]{1, 3, INPUT_SIZE, INPUT_SIZE});
result = session.run(Collections.singletonMap(session.getInputNames().iterator().next(), inputTensor));
Urgency
No response
Platform
Android
OS Version
14
ONNX Runtime Installation
Built from Source
Compiler Version (if 'Built from Source')
No response
Package Name (if 'Released Package')
None
ONNX Runtime Version or Commit ID
1.20.0
ONNX Runtime API
Java/Kotlin
Architecture
X64
Execution Provider
Other / Unknown
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: