Enabling Android NNAPI Flow for TVM Runtime

被引:3
作者
Lai, Ming-Yi [1 ]
Sung, Chia-Yu [2 ]
Lee, Jenq-Kuen [1 ]
Hung, Ming-Yu [2 ]
机构
[1] Natl Tsing Hua Univ, Dept Comp Sci, Hsinchu, Taiwan
[2] Mediatek Inc, Hsinchu, Taiwan
来源
49TH INTERNATIONAL CONFERENCE ON PARALLEL PROCESSING WORKSHOP PROCEEDINGS, ICPP 2020 | 2020年
关键词
Android; NNAPI; TVM; Relay IR; Deep Learning; Inference;
D O I
10.1145/3409390.3409393
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
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.
引用
收藏
页数:8
相关论文
共 15 条
[1]  
Abadi M, 2016, PROCEEDINGS OF OSDI'16: 12TH USENIX SYMPOSIUM ON OPERATING SYSTEMS DESIGN AND IMPLEMENTATION, P265
[2]  
Chen TQ, 2018, PROCEEDINGS OF THE 13TH USENIX SYMPOSIUM ON OPERATING SYSTEMS DESIGN AND IMPLEMENTATION, P579
[3]  
Howard AG, 2017, Arxiv, DOI arXiv:1704.04861
[4]  
Google Inc, Android NDK | Android Developers
[5]  
Google Inc, Neural Networks API | Android NDK | Android Developers
[6]  
Halide, Halide
[7]  
keras team, Home-Keras Documentation
[8]   ImageNet Classification with Deep Convolutional Neural Networks [J].
Krizhevsky, Alex ;
Sutskever, Ilya ;
Hinton, Geoffrey E. .
COMMUNICATIONS OF THE ACM, 2017, 60 (06) :84-90
[9]  
LeCun Y., 2015, Lenet-5, convolutional neural networks
[10]  
MediaTek Inc, MediaTek Helio G90 Series