-
Notifications
You must be signed in to change notification settings - Fork 660
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
ML Program matmul not handling 1D input correctly #2263
Comments
There are also a number of places that seem to assume both e.g. coremltools/coremltools/converters/mil/mil/ops/defs/iOS15/linear.py Lines 196 to 208 in 0e292a0
Which results in errors like this for 1D
|
### 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.
I can reproduce this issue with coremltools version This look like a bug in coremltools, not the Framework. Specifically, it looks like an issue in the |
🐞Describing the bug
The spec says handling of 1D inputs should have numpy behavior.
The output shape appears to be calculated incorrectly and the
predict
crashes. Not sure if the crash is an issue as the Core ML Framework level though.Stack Trace
To Reproduce
This is the output from
print(prog)
. The expected output shape is {10,3} according to the spec, but appears to be {1, 3}.Output from
predict
System environment (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: