MACE (Machine Learning Accelerator) is an open-source project designed to accelerate machine learning (ML) models on Android devices. It supports a wide range of ML models, including those in TensorFlow Lite, TensorFlow, and other formats. MACE allows for the deployment of these models on various hardware platforms, including CPUs, GPUs, and specialized accelerators like the Google Pixel's NPU (Neural Processing Unit).
| Attribute | Value | |-----------|-------| | | MACE (Mobile AI Compute Engine, by Xiaomi) | | Language | OpenCL C (pre-compiled to binary) | | Hardware target | Specific GPU model (e.g., Adreno, Mali, PowerVR) | | Purpose | Accelerate neural network inference on GPU without JIT compilation time | | Portability | None – crashes on different GPU | | Typical location | App’s assets or model cache directory | mace-cl-compiled-program.bin
The compilation process often involves optimizations specific to the target hardware. This means mace-cl-compiled-program.bin is not just a straightforward conversion but an optimized version of the model for faster and more efficient execution. | Attribute | Value | |-----------|-------| | |
MACE is famous for its ability to take a neural network model (usually a .pb or .tflite file) and execute it with low latency and low power consumption. : Use lsusb (Linux) or Device Manager (Windows)
: Use lsusb (Linux) or Device Manager (Windows) to identify the board's VID (Vendor ID) and PID (Product ID).
The Mystery of mace-cl-compiled-program.bin : A Deep Dive into Mobile AI