Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CoreML: Disable 1D ML Program matmul due to bug in coreml #21186

Merged
merged 5 commits into from
Jun 29, 2024

Conversation

skottmckay
Copy link
Contributor

Description

Disable using CoreML ML Program for a matmul where one of the inputs is 1D as the CoreML implementation appears to be broken. See apple/coremltools#2263

Add some debugging notes.

Motivation and Context

Fix failing test on macos-14.

…CoreML ML Program implementation does not appear to handle it correctly.

Manually checked that the ONNX input/output shapes were all correct and as required by the CoreML spec, so appear to be creating the ML Program model correctly.
@edgchen1
Copy link
Contributor

could you also try enabling the CoreML EP in the MacOS 14 CI build?

python ./tools/ci_build/build.py \
--build_dir ./build \
--update \
--build --parallel \
--test \
--build_shared_lib \
--build_objc \
--use_xnnpack \
--use_binskim_compliant_compile_flags
# TODO add --use_coreml once unit test failures are addressed

@skottmckay skottmckay requested a review from a team as a code owner June 27, 2024 22:59
snnn
snnn previously approved these changes Jun 27, 2024
@snnn
Copy link
Member

snnn commented Jun 28, 2024

/azp run Big Models , orttraining-ortmodule-distributed

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@snnn
Copy link
Member

snnn commented Jun 29, 2024

/azp run Big Models

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@snnn snnn merged commit 8c26898 into main Jun 29, 2024
96 of 100 checks passed
@snnn snnn deleted the skottmckay/CoreML_MLProgram_Disable1DMatMul branch June 29, 2024 19:19
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.

3 participants