enable xnnpack in default_full_aar_build_settings#12682
Conversation
|
Hi @Craigacp, Noticed this comment in the code about an unrecognized provider: onnxruntime/java/src/main/java/ai/onnxruntime/OnnxRuntime.java Lines 402 to 404 in 17ccd6f What do we need to do to add support for a new EP in the Java API? |
|
At minimum you need to add an entry to this enum then add whatever is necessary to turn it on in the session options. |
|
FWIW xnnpack uses the new generic 'add ep' interface - SessionOptionsAppendExecutionProvider. onnxruntime/include/onnxruntime/core/session/onnxruntime_c_api.h Lines 3468 to 3472 in b83ea3c Can probably copy logic from existing 'add ep' implmentations, with the handling of the config key/value strings when calling the C API being similar to onnxruntime/java/src/main/native/ai_onnxruntime_OrtSession_SessionOptions.c Lines 348 to 358 in b83ea3c |
Description: Describe your changes.
Motivation and Context