arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1907.01989cs.LGcs.CVcs.DCstat.ML
收藏

基于移动GPU的设备上神经网络推理

On-Device Neural Net Inference with Mobile GPUs

Google Research(谷歌研究院)

Juhyun Lee, Nikolay Chirkov, Ekaterina Ignasheva, Yury Pisarchyk, Mogan Shieh, Fabio Riccardi, Raman Sarokin, Andrei Kulik, Matthias Grundmann

摘要:

移动电话的机器学习模型的设备上推断由于其较低的延迟和增加的隐私性而被期望。然而,由于有限的计算能力、热约束和能耗,仅在移动CPU上运行这样的计算密集型任务可能是困难的。应用程序开发人员和研究人员已经开始利用硬件加速器来克服这些挑战。最近,设备制造商正在将神经处理单元添加到高端手机中,用于设备上的推理,但这些仅占手持设备的一小部分。在本文中,我们介绍了如何利用移动GPU(几乎每部手机上无处不在的硬件加速器)为Android和iOS设备实时运行深度神经网络的推理。通过描述我们的架构,我们还讨论了如何设计移动GPU友好的网络。我们最先进的移动GPU推理引擎已集成到开源项目TensorFlow Lite中,并可在https://tensorflow.org/lite上公开获取。

英文摘要:

On-device inference of machine learning models for mobile phones is desirable due to its lower latency and increased privacy. Running such a compute-intensive task solely on the mobile CPU, however, can be difficult due to limited computing power, thermal constraints, and energy consumption. App developers and researchers have begun exploiting hardware accelerators to overcome these challenges. Recently, device manufacturers are adding neural processing units into high-end phones for on-device inference, but these account for only a small fraction of hand-held devices. In this paper, we present how we leverage the mobile GPU, a ubiquitous hardware accelerator on virtually every phone, to run inference of deep neural networks in real-time for both Android and iOS devices. By describing our architecture, we also discuss how to design networks that are mobile GPU-friendly. Our state-of-the-art mobile GPU inference engine is integrated into the open-source project TensorFlow Lite and publicly available at https://tensorflow.org/lite.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑