pytorch/torch/csrc/jit/backends
Stephen Jia 93d84c0fcf [coreml] Use special throw macro when encountering CoreML API errors (#77429)
Summary: 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
```

Differential Revision: D36378286

Pull Request resolved: https://github.com/pytorch/pytorch/pull/77429
Approved by: https://github.com/kimishpatel
2022-05-16 18:02:48 +00:00
..
coreml [coreml] Use special throw macro when encountering CoreML API errors (#77429) 2022-05-16 18:02:48 +00:00
nnapi Fix sign-compare in nnapi backend 2022-04-05 00:08:04 +00:00
backend_debug_handler.cpp
backend_debug_handler.h
backend_debug_info.cpp
backend_debug_info.h
backend_detail.cpp [Pytorch Edge] Wrap lowered module in to_backend (#71597) 2022-01-25 06:30:19 +00:00
backend_detail.h
backend_exception.h
backend_init.cpp Jiterates exp2, erfc, erfinv and entr and refactors code_template.h to ATen (#71295) 2022-01-13 23:58:51 -08:00
backend_init.h
backend_interface.cpp
backend_interface.h
backend_preprocess.h
backend_resolver.cpp
backend_resolver.h
backend.h