arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2001.05572cs.LGcs.PF
收藏

资源受限系统上卷积神经网络快速推理和简单部署的C代码生成器

A C Code Generator for Fast Inference and Simple Deployment of Convolutional Neural Networks on Resource Constrained Systems

Fraunhofer IML(弗劳恩霍夫物流研究院)

Oliver Urbann, Simon Camphausen, Arne Moos, Ingmar Schwarz, Sören Kerner, Maximilian Otten

摘要:

卷积神经网络在时间关键型应用中的推理通常需要GPU。在机器人或嵌入式设备中,由于能源、空间和成本的限制,这些通常是不可用的。此外,在目标平台上安装深度学习框架甚至本机编译器是不可能的。本文提出了一种神经网络代码生成器(NNCG),它从训练好的CNN生成一个普通的ANSI C代码文件,该文件将推理封装在单个函数中。它可以很容易地包含在现有的项目中,由于缺乏依赖性,交叉编译通常是可能的。此外,代码生成基于已知的训练的CNN和目标平台,遵循四个设计原则进行优化。该系统的评估,利用小CNN设计用于此应用程序。与TensorFlow相比,XLA和Glow的加速高达11.81,甚至在延迟方面也优于GPU。

英文摘要:

Inference of Convolutional Neural Networks in time critical applications usually requires a GPU. In robotics or embedded devices these are often not available due to energy, space and cost constraints. Furthermore, installation of a deep learning framework or even a native compiler on the target platform is not possible. This paper presents a neural network code generator (NNCG) that generates from a trained CNN a plain ANSI C code file that encapsulates the inference in single a function. It can easily be included in existing projects and due to lack of dependencies, cross compilation is usually possible. Additionally, the code generation is optimized based on the known trained CNN and target platform following four design principles. The system is evaluated utilizing small CNN designed for this application. Compared to TensorFlow XLA and Glow speed-ups of up to 11.81 can be shown and even GPUs are outperformed regarding latency.

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

↑