Skip to content

Fixing CoreML in Java#16231

Merged
edgchen1 merged 2 commits intomicrosoft:mainfrom
Craigacp:java-coreml
Jun 7, 2023
Merged

Fixing CoreML in Java#16231
edgchen1 merged 2 commits intomicrosoft:mainfrom
Craigacp:java-coreml

Conversation

@Craigacp
Copy link
Contributor

@Craigacp Craigacp commented Jun 5, 2023

Description

The name of the flag we set when compiling the JNI binding to enable the CoreML EP changed at some point in the past. This PR fixes it by updating the flag in the JNI. I also added a quick smoke test for the CoreML provider to make sure it doesn't crash and can be enabled.

Motivation and Context

All the EPs should work as expected in Java. Fixes #16230.

YUNQIUGUO
YUNQIUGUO approved these changes Jun 5, 2023
@skottmckay
Copy link
Contributor

/azp run Windows ARM64 QNN CI Pipeline,Windows CPU CI Pipeline,Windows GPU CI Pipeline,Windows GPU TensorRT CI Pipeline,ONNX Runtime Web CI Pipeline,Linux CPU CI Pipeline,Linux CPU Minimal Build E2E CI Pipeline,Linux GPU CI Pipeline,Linux GPU TensorRT CI Pipeline,Linux OpenVINO CI Pipeline

@skottmckay
Copy link
Contributor

/azp run Linux QNN CI Pipeline,MacOS CI Pipeline,orttraining-amd-gpu-ci-pipeline,orttraining-linux-ci-pipeline,orttraining-linux-gpu-ci-pipeline,orttraining-ortmodule-distributed,onnxruntime-python-checks-ci-pipeline,onnxruntime-binary-size-checks-ci-pipeline

@azure-pipelines
Copy link

Azure Pipelines successfully started running 7 pipeline(s).

@azure-pipelines
Copy link

Azure Pipelines successfully started running 10 pipeline(s).

@edgchen1 edgchen1 merged commit bca49d6 into microsoft:main Jun 7, 2023
Honry pushed a commit to Honry/onnxruntime that referenced this pull request Jun 8, 2023
### Description
The name of the flag we set when compiling the JNI binding to enable the CoreML EP changed at some point in the past. This PR fixes it by updating the flag in the JNI. I also added a quick smoke test for the CoreML provider to make sure it doesn't crash and can be enabled.

### Motivation and Context
All the EPs should work as expected in Java. Fixes microsoft#16230.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Build] Unable to use CoreML: This binary was not compiled with CoreML support.

4 participants