These are the APIs you can choose from:

  • using a cloud service
  • Core ML
  • high-level Metal with the MPS graph API
  • low-level Metal Performance Shaders
  • third-party APIs such as TensorFlow and Caffe
  • rolling your own

Source: Pros and cons of iOS machine learning APIs