[code-reflection] RFR: Add support for other onnx providers (CoreML) [v3]

Ana Maria Mihalceanu duke at openjdk.org
Mon Oct 20 14:36:40 UTC 2025


> This PR contains a series of changes meant to integrate other ONNX providers.
> 
> * It contains generated Java bindings for CoreML provider: `oracle.code.onnx.foreign.coreml_provider_factory_h`
> * Configurations of providers are present in `oracle.code.onnx.provider`.
> * Provider configuration should occur via `SessionOptions` on inference session, prior to any work done by the native library. Hence why `OnnxRuntime` has an `executeWithOptions` method.
> * There is a small UI example that use [Facial Emotion Recognition](https://github.com/onnx/models/tree/main/validated/vision/body_analysis/emotion_ferplus) model on how use the CoreML provider under `test` directory, inside `oracle.code.onnx.fer`.
> * The `README.md` file contains instructions on how to run the example and how to regenerate the bindings for the provider. Instructions and scripts to regenerate the bindings were provided for macOS users only since CoreML is an Apple software.
> 
> Work done in this PR is done together with [Lize Raes](https://github.com/LizeRaes).

Ana Maria Mihalceanu has updated the pull request incrementally with two additional commits since the last revision:

 - Revert logging level to error.
 - Refactor OnnxRuntime and CoreMLProvider to address PR comments.

-------------

Changes:
  - all: https://git.openjdk.org/babylon/pull/618/files
  - new: https://git.openjdk.org/babylon/pull/618/files/df32b1eb..293d6e77

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=babylon&pr=618&range=02
 - incr: https://webrevs.openjdk.org/?repo=babylon&pr=618&range=01-02

  Stats: 129 lines in 10 files changed: 44 ins; 69 del; 16 mod
  Patch: https://git.openjdk.org/babylon/pull/618.diff
  Fetch: git fetch https://git.openjdk.org/babylon.git pull/618/head:pull/618

PR: https://git.openjdk.org/babylon/pull/618


More information about the babylon-dev mailing list