pytorch
dbd38f63 - Include CoreML error description in exception thrown when inference fails (#84804)

Commit
3 years ago
Include CoreML error description in exception thrown when inference fails (#84804) Summary: Catch the error and throw an exception with PTMCoreMLBackend when inference fails. This way the error description will be available in the logged crash, as opposed to crashing with a less descriptive exception. I'll be drafting follow up diffs to actually catch exceptions in the segmentation shim next. Ideally we would fail inference gracefully and not crash at all, but at least after this diff we'll have the full diagnostic info Test Plan: Force an error, and confirm its description appears in the exception thrown via the console Differential Revision: D39407865 Pull Request resolved: https://github.com/pytorch/pytorch/pull/84804 Approved by: https://github.com/mcr229
Author
Committer
Parents
Loading