Logo image
Enabling Android NNAPI Flow for TVM Runtime
Conference paper

Enabling Android NNAPI Flow for TVM Runtime

Ming-Yi Lai, Chia-Yu Sung, Jenq-Kuen Lee and Ming-Yu Hung
ACM International Conference Proceeding Series, 3
08/2020

Abstract

Android Deep Learning Inference NNAPI Relay IR TVM Computer Networks and Communications Computer Vision and Pattern Recognition Human-Computer Interaction Software
With machine learning on the rise, mobile platforms are striving to offer inference acceleration on edge devices so that related applications can achieve satisfiable performance. With this background, this work aims at interfacing inference on Android with TVM, an inference-focusing compiler for machine learning, and NNAPI, the official neural network API provided by Android. This work presents a flow to integrate NNAPI into TVM-generated inference model with a partition algorithm to determine which parts of the model should be computed on NNAPI and which should not. Conducted experiments show that properly partitioned models can achieve significant speedup using NNAPI when compared to pure TVM-generated CPU inference. In addition, our enable flow potentially benefits both frameworks by allowing them to leverage each other in AI model deployments.

Metrics

1 Record Views

Details

Logo image