-
Notifications
You must be signed in to change notification settings - Fork 644
Do not use BNNS copy when dtypes differ in CoreML #13018
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/13018
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 1 Cancelled Job, 6 PendingAs of commit 9dda55a with merge base 5d3550f ( NEW FAILURES - The following jobs have failed:
CANCELLED JOB - The following job was cancelled. Please retry:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
cc @cymbalrush can I can a sanity check here. Is BNNS expected to crash when the dtypes differ? |
It's not expected to crash, do you have an example model for which it crashes? We can merge the PR but it would be good to know for which datatype and layout it's crashing. |
Yes, you can consistently see the crash on this toy model here with floor_divide: #11714 The output dtype mismatch occurs because CoreML converts the dtype of floor_divide to float32 internally, but the output dtype in the exported program has dtype int64. |
d7d74f4
to
9dda55a
Compare
BNNS copy crashes the process when the dtypes differ (#11714).
With the example in this PR (#11714), we crash the process on main. Here is the stack trace from LLDB:
With this PR, the process succeeds.