Search code examples
c++cobjective-ccoremlafter-effects

Implement Objective-C (CoreML) in C++ (Adobe plugin)


So I'd like to implement CoreML inside an Adobe After Effects plugin I'm developing. Thing is that the After Effects SDK is in C++ (it is C compatible), and the CoreML API is in only Objective C and Swift.

All I want is the .plugin (the compiled After Effects plugin) to still work in After Effects with CoreML, I know there are magical tricks to make Objective C and normal C work together but have no idea how to make the After Effects SDK and CoreML work together, if this is even feasible in the first place as I only see old simple tutorials on how to implement Objective-C in C++.

The reason why I want to make this work is due to Apple deprecating OpenCL in Mac OS, leaving me with only CoreML as a GPU-accelerated deep learning framework.


Solution

  • To answer my own question, nGraph (also Tensorflow) with the PlaidML backend or the TVM compiler stack have both Metal acceleration support!