Skip to content

Conversation

@f-meloni
Copy link
Contributor

Summary:
Added conditional compilation to mitigate a crash on iOS<16 where the used function is not present.
Fixes #6984

Bonus: report back the error in case of compilation errors, which was missing

Differential Revision: D66294248

Summary:
Added conditional compilation to mitigate a crash on iOS<16 where the used function is not present.
Fixes pytorch#6984

Bonus: report back the error in case of compilation errors, which was missing

Differential Revision: D66294248
@pytorch-bot
Copy link

pytorch-bot bot commented Nov 21, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7007

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

❌ 3 New Failures

As of commit 8f75eef with merge base 270d055 (image):

NEW FAILURES - The following jobs have failed:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 21, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66294248

@f-meloni
Copy link
Contributor Author

@pytorchbot label "module: coreml"

@pytorch-bot pytorch-bot bot added the module: coreml Issues related to Apple's Core ML delegation and code under backends/apple/coreml/ label Nov 21, 2024
@f-meloni
Copy link
Contributor Author

@pytorchbot label "release notes: backends"

return nil;
}
} else {
result = [MLModel compileModelAtURL:modelURL error:&localError];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't have the timeout logic, but it was crashing before, so I think we can go with this for now to mitigate the issue and improve it later.

@cccclai cccclai requested a review from cymbalrush November 22, 2024 17:37
Copy link
Contributor

@cymbalrush cymbalrush left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Is iOS 15 the minimum deployment target, I always thought it's iOS 16

@f-meloni
Copy link
Contributor Author

@cymbalrush Thank you for the review :)

I think it is iOS 13

@facebook-github-bot facebook-github-bot merged commit abd739e into pytorch:main Nov 22, 2024
46 of 53 checks passed
@f-meloni f-meloni deleted the export-D66294248 branch November 22, 2024 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported module: coreml Issues related to Apple's Core ML delegation and code under backends/apple/coreml/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CoreML delegate crashes on model load on iOS 15.5

3 participants