[CoreML][iOS/MacOS] Add the CoreML executor (#64522)
authorTao Xu <taox@fb.com>
Fri, 17 Sep 2021 16:16:39 +0000 (09:16 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 17 Sep 2021 16:32:34 +0000 (09:32 -0700)
commita8d7b885c52e9acd25775bbd50de238da5a5624d
tree3aa75ae9eedad655d111abf06e6703670ad5e26c
parentaafeea3a6ccbc11ba6181b8790bac6528a1840a4
[CoreML][iOS/MacOS] Add the CoreML executor (#64522)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/64522

The `PTMCoreMLExecutor` serves as a bridge between the delegate APIs and Core ML runtime.
ghstack-source-id: 138324217

allow-large-files

Test Plan:
iOS:
Run the CoreML tests in the playground app

MacOS:

```
buck test pp-macos

PASS     633ms  1 Passed   0 Skipped   0 Failed   CoreMLTests
```

{F657776101}

Reviewed By: raziel, iseeyuan

Differential Revision: D30594042

fbshipit-source-id: a42a5307a24c2f364333829f3a84f7b9a51e1b3e
torch/csrc/jit/backends/coreml/objc/PTMCoreMLBackend.mm [new file with mode: 0644]
torch/csrc/jit/backends/coreml/objc/PTMCoreMLExecutor.h [new file with mode: 0644]
torch/csrc/jit/backends/coreml/objc/PTMCoreMLExecutor.mm [new file with mode: 0644]