All Projects → hollance → Neural Engine

hollance / Neural Engine

Licence: mit
Everything we actually know about the Apple Neural Engine (ANE)

Projects that are alternatives of or similar to Neural Engine

digitrecognition ios
Deep Learning with Tensorflow/Keras: Digit recognition based on mnist-dataset and convolutional neural-network on iOS with CoreML
Stars: ✭ 23 (-93.24%)
Mutual labels:  iphone, coreml
Espnetv2 Coreml
Semantic segmentation on iPhone using ESPNetv2
Stars: ✭ 66 (-80.59%)
Mutual labels:  iphone, coreml
Gesture Recognition 101 Coreml Arkit
Simple project to recognize hands in realtime. 👋 Serves as an Example for building your own object recognizer.
Stars: ✭ 278 (-18.24%)
Mutual labels:  coreml
Blear
iOS app that transforms your photos into stunning blurry wallpapers for your device
Stars: ✭ 311 (-8.53%)
Mutual labels:  iphone
Waifu2x Ios
iOS Core ML implementation of waifu2x
Stars: ✭ 286 (-15.88%)
Mutual labels:  coreml
D2pdatepicker
Elegant and Easy-to-Use iOS Swift Date Picker
Stars: ✭ 280 (-17.65%)
Mutual labels:  iphone
Endoflife.date
Informative site with EoL dates of everything
Stars: ✭ 296 (-12.94%)
Mutual labels:  iphone
Facesvisiondemo
👀 iOS11 demo application for age and gender classification of facial images.
Stars: ✭ 273 (-19.71%)
Mutual labels:  coreml
Iphonemocapios
Stars: ✭ 338 (-0.59%)
Mutual labels:  iphone
Chatsecure Ios
ChatSecure is a free and open source encrypted chat client for iOS that supports OTR and OMEMO encryption over XMPP.
Stars: ✭ 3,044 (+795.29%)
Mutual labels:  iphone
Iphone X
🐳A simple and easy way to keep your custom views layout properly on iPhone X
Stars: ✭ 304 (-10.59%)
Mutual labels:  iphone
Shortcuts
自动养猫|自动淘金币|自动欢乐造|抢购助手|快捷指令
Stars: ✭ 283 (-16.76%)
Mutual labels:  iphone
Showtime
The easiest way to show off your iOS taps and gestures for demos and videos.
Stars: ✭ 281 (-17.35%)
Mutual labels:  iphone
Knphotobrowser
📷 图片 || 视频 浏览器(本地和网络) , UIViewController + CollectionView , 完美适配 iPhone 以及 iPad ,屏幕旋转功能 , 适配SDWebImage 5.0
Stars: ✭ 296 (-12.94%)
Mutual labels:  iphone
Balance Open
Balance Open: A GPL3-licensed macOS menu bar app for all the world’s currencies.
Stars: ✭ 279 (-17.94%)
Mutual labels:  iphone
Open Source Xamarin Apps
📱 Collaborative List of Open Source Xamarin Apps
Stars: ✭ 318 (-6.47%)
Mutual labels:  iphone
Instagram stories
Inspired by Instagram Stories functionality. This source is similar to Instagram Stories, which is having both image and video support.
Stars: ✭ 275 (-19.12%)
Mutual labels:  iphone
Dosxvpn
Easily deploy your own personal VPN server with DNS adblocking running on DigitalOcean
Stars: ✭ 284 (-16.47%)
Mutual labels:  iphone
Yampa
Functional Reactive Programming domain-specific language embedded in Haskell, for programming efficient hybrid (mixed discrete-time and continuous-time) systems.
Stars: ✭ 294 (-13.53%)
Mutual labels:  iphone
Ios Open Gpx Tracker
GPS Tracker app for iOS + WatchOS. Log your tracks without limits and share them; Open source GPX tracker app written in Swift
Stars: ✭ 344 (+1.18%)
Mutual labels:  iphone

The Neural Engine — what do we know about it?

Most new iPhones and iPads have a Neural Engine, a special processor that makes machine learning models really fast, but not much is publicly known about how this processor actually works.

The Apple Neural Engine (or ANE) is a type of NPU, which stands for Neural Processing Unit. It's like a GPU, but instead of accelerating graphics an NPU accelerates neural network operations such as convolutions and matrix multiplies.

The ANE isn't the only NPU out there — many companies besides Apple are developing their own AI accelerator chips. Besides the Neural Engine, the most famous NPU is Google's TPU (or Tensor Processing Unit).

Why this document?

I provide ML consulting services for iOS and often get email from people who are confused why their model doesn't appear to be running on the Neural Engine, or why it is so slow when the ANE is supposed to be way faster than the GPU...

It turns out that not every Core ML model can make full use of the ANE. The reason why can be complicated, hence this document tries to answer the most common questions.

The ANE is great for making ML models run really fast on iPhones and iPads. A model that is optimized for the ANE will seriously outperform the CPU and GPU. But the ANE also has limitations. Unfortunately Apple isn't giving third-party developers any guidance on how to optimize their models to take advantage of the ANE. It's mostly a process of trial-and-error to figure out what works and what doesn't.

Note: Everything here was obtained by experimentation. I do not work at Apple and never have, so I am not privy to any implementation details of this chip. Some of this information is probably wrong. It's definitely incomplete. If you know something that isn't explained here, or if you find information that is wrong or missing, please file an issue or make a pull request. Thanks!

If you want to learn more about Core ML in general, I've also written the Core ML Survival Guide, an e-book full of tips & tricks about Core ML. Also check out my blog about ML on mobile.

I was originally planning to make this a blog post but decided to put it on GitHub to make it a community resource and so that other people could contribute to it too. Please do!

Table of contents

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].