ISARef Multi-ISA & Silicon Reference
45,419 ISA items · 105,907 timings · 1,761 microarchs · 16,083 chips · 105 sources
Arch:
Tier:

ANE: Reverse engineering the ANE

T3 apple-ane guide guide
Apple Neural Engine Guide — Reverse engineering the ANE
SourceApple Neural Engine Architecture Guide (hollance/neural-engine) (apple_ane_hollance)
Reliability TierT3 — Hardware-Verified
ISA / Silicon ScopeApple A11–A19 / M1–M4 ANE
Apple A11–A19 / M1–M4 ANE
License & VersionMIT
master
Upstreamhttps://github.com/hollance/neural-engine
Note: Benchmarked and verified on Apple hardware; capabilities vary by ANE generation.

Summary

There is currently no public API for using the ANE, but there are private frameworks that are used by Core ML. It is possible to figure out how the ANE works -- or at least how to talk to it -- by looking inside these private frameworks.

Syntax / Encoding

Reverse engineering the ANE

Reference Notes

# Reverse engineering the ANE

There is currently no public API for using the ANE, but there are private frameworks that are used by Core ML. It is possible to figure out how the ANE works -- or at least how to talk to it -- by looking inside these private frameworks.

geohot has published [some initial results](https://github.com/tinygrad/tinygrad/tree/d0e752003da3fc023fa85094d7f5b65b47dd5091/extra/accel/ane) in the tinygrad repo.

Recordings of the live streams where he's figuring how the ANE works:

- https://www.youtube.com/watch?v=H6ZpMMDvB1M
- https://www.youtube.com/watch?v=JAyw7OAcXDE
- https://www.youtube.com/watch?v=Cb2KwcnDKrk
- https://www.youtube.com/watch?v=9LzJ3h9iKEA