[CoreML EP] Add support for LeakyReLU activation layers#15327
[CoreML EP] Add support for LeakyReLU activation layers#15327YUNQIUGUO merged 3 commits intomicrosoft:mainfrom
Conversation
## Description Implements support for LeakyReLU in ActivationOpBuilder for CoreML's EP. This speeds up inference on macOS significantly for models using LeakyReLU.
|
@microsoft-github-policy-service agree |
YUNQIUGUO
left a comment
There was a problem hiding this comment.
thanks for the contribution!
onnxruntime/core/providers/coreml/builders/impl/activation_op_builder.cc
Outdated
Show resolved
Hide resolved
onnxruntime/core/providers/coreml/builders/impl/activation_op_builder.cc
Outdated
Show resolved
Hide resolved
|
Thanks for the review @YUNQIUGUO! − I implemented your suggestion. |
|
/azp run Windows CPU CI Pipeline, Windows GPU CI Pipeline, Windows GPU TensorRT CI Pipeline, orttraining-linux-ci-pipeline, orttraining-linux-gpu-ci-pipeline, orttraining-ortmodule-distributed, onnxruntime-python-checks-ci-pipeline, ONNX Runtime React Native CI Pipeline |
|
Azure Pipelines successfully started running 7 pipeline(s). |
|
/azp run CoreML CI Pipeline, iOS CI Pipeline, Android CI Pipeline, ONNX Runtime Web CI Pipeline |
|
Azure Pipelines successfully started running 4 pipeline(s). |
|
/azp run Linux CPU CI Pipeline, Linux CPU Minimal Build E2E CI Pipeline, Linux GPU CI Pipeline, Linux GPU TensorRT CI Pipeline, Linux OpenVINO CI Pipeline, MacOS CI Pipeline, ONNX Runtime Web CI Pipeline, onnxruntime-binary-size-checks-ci-pipeline, Linux QNN CI Pipeline |
|
/azp run Windows CPU CI Pipeline, Windows GPU CI Pipeline, Windows GPU TensorRT CI Pipeline, orttraining-linux-ci-pipeline, orttraining-linux-gpu-ci-pipeline, orttraining-ortmodule-distributed, onnxruntime-python-checks-ci-pipeline, ONNX Runtime React Native CI Pipeline |
|
Azure Pipelines successfully started running 9 pipeline(s). |
|
Azure Pipelines successfully started running 7 pipeline(s). |
|
If you can, please share the models/scenarios you are using with this op. Thanks! |
|
/azp run Linux CPU CI Pipeline, Linux CPU Minimal Build E2E CI Pipeline, Linux GPU CI Pipeline, Linux GPU TensorRT CI Pipeline, Linux OpenVINO CI Pipeline, MacOS CI Pipeline, ONNX Runtime Web CI Pipeline, onnxruntime-binary-size-checks-ci-pipeline, Linux QNN CI Pipeline |
|
/azp run Windows CPU CI Pipeline, Windows GPU CI Pipeline, Windows GPU TensorRT CI Pipeline, orttraining-linux-ci-pipeline, orttraining-linux-gpu-ci-pipeline, orttraining-ortmodule-distributed, onnxruntime-python-checks-ci-pipeline, ONNX Runtime React Native CI Pipeline |
|
Azure Pipelines successfully started running 9 pipeline(s). |
|
Azure Pipelines successfully started running 7 pipeline(s). |
|
/azp run Windows ARM64 QNN CI Pipeline |
|
Azure Pipelines successfully started running 1 pipeline(s). |
### Description This change is a follow-up to #15327. It adds Unary operators (Sqrt, Reciprocal) and Reduce operators (ReduceSum, ReduceMean). I've tried to follow existing patterns in the code :-) ### Motivation and Context This reduces fragmentation across EPs when using CoreML on macOS, thereby speeding up execution. --------- Co-authored-by: Edward Chen <18449977+edgchen1@users.noreply.github.com>
Description
Implements support for LeakyReLU in ActivationOpBuilder for CoreML's EP.
Motivation and Context
This speeds up inference on macOS significantly for models using LeakyReLU.