-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[coreml] Use special throw macro when encountering CoreML API errors #77429
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
✅ No Failures (0 Pending)As of commit 4ae7b75 (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
This pull request was exported from Phabricator. Differential Revision: D36378286 |
This pull request was exported from Phabricator. Differential Revision: D36378286 |
This pull request was exported from Phabricator. Differential Revision: D36378286 |
1 similar comment
This pull request was exported from Phabricator. Differential Revision: D36378286 |
Differential Revision: D36378285 fbshipit-source-id: 6874d768db940baa2508b9f3c2a466a0ba6e3279
…ytorch#77429) Summary: Pull Request resolved: pytorch#77429 Error messages from `TORCH_CHECK` are stripped during production builds via `-DSTRIP_ERROR_MESSAGES`. This diff introduces a new macro `COREML_CHECK` which will always preserve the error message. This macro is used when encountering errors produced by CoreML API calls so that we can heve enough context to debug. Test Plan: Test in pytorch playground: ``` arc focus2 -b pp-ios -a ModelRunner -a //xplat/caffe2/c10:c10Apple -a //xplat/caffe2:torch_mobile_coreApple -a //xplat/caffe2/fb/dynamic_pytorch:dynamic_pytorch_implApple -a //xplat/caffe2:coreml_delegateApple -a ModelRunnerDevOps -a //xplat/caffe2:torch_mobile_all_opsApple -fd --force-with-wrong-xcode ``` Reviewed By: kimishpatel Differential Revision: D36378286 fbshipit-source-id: 9d0ff7029cb24b7a6387bb16047f79a17cb4d92f
This pull request was exported from Phabricator. Differential Revision: D36378286 |
@pytorchbot merge this (Initiating merge automatically since Phabricator Diff has merged) |
Hey @SS-JIA. |
…77429) Summary: Pull Request resolved: #77429 Error messages from `TORCH_CHECK` are stripped during production builds via `-DSTRIP_ERROR_MESSAGES`. This diff introduces a new macro `COREML_CHECK` which will always preserve the error message. This macro is used when encountering errors produced by CoreML API calls so that we can heve enough context to debug. Test Plan: Test in pytorch playground: ``` arc focus2 -b pp-ios -a ModelRunner -a //xplat/caffe2/c10:c10Apple -a //xplat/caffe2:torch_mobile_coreApple -a //xplat/caffe2/fb/dynamic_pytorch:dynamic_pytorch_implApple -a //xplat/caffe2:coreml_delegateApple -a ModelRunnerDevOps -a //xplat/caffe2:torch_mobile_all_opsApple -fd --force-with-wrong-xcode ``` Reviewed By: kimishpatel Differential Revision: D36378286 fbshipit-source-id: 193004937ac2fb2a5bb5fe79b716a172480957f7
Summary: Error messages from
TORCH_CHECK
are stripped during production builds via-DSTRIP_ERROR_MESSAGES
. This diff introduces a new macroCOREML_CHECK
which will always preserve the error message. This macro is used when encountering errors produced by CoreML API calls so that we can heve enough context to debug.Test Plan:
Test in pytorch playground:
Differential Revision: D36378286