李施豪, 应三丛. 基于FPGA的卷积神经网络浮点激励函数实现[J]. 微电子学与计算机, 2017, 34(10): 105-109.
引用本文: 李施豪, 应三丛. 基于FPGA的卷积神经网络浮点激励函数实现[J]. 微电子学与计算机, 2017, 34(10): 105-109.
LI Shi-hao, YING San-cong. The Implementation of Activation Function of CNN Based on FPGA Using Single Precision Floating-Point-Unit[J]. Microelectronics & Computer, 2017, 34(10): 105-109.
Citation: LI Shi-hao, YING San-cong. The Implementation of Activation Function of CNN Based on FPGA Using Single Precision Floating-Point-Unit[J]. Microelectronics & Computer, 2017, 34(10): 105-109.

基于FPGA的卷积神经网络浮点激励函数实现

The Implementation of Activation Function of CNN Based on FPGA Using Single Precision Floating-Point-Unit

  • 摘要: 卷积神经网络因深度学习概念的提出再一次被研究人员所重视.激励函数是卷积神经网络的一个重要组成部分, 选取了sigmoid函数作为实验对象.讨论了当前几种可行的逼近方法, 最终采用分段四阶多项式拟合sigmoid函数.在FPGA上使用Verilog硬件描述语言设计了并行电路, 并采集了数据集进行FPGA与CPU版本caffe库进行运算效率对比.实验结果表明, 此种方法误差小效率高, FPGA在深度学习领域有着广阔的应用前景.

     

    Abstract: Convolutional Neural Network (CNN) was gotten attention because of the presentation of Deep-Learning. It has large research value for Deep-Learning in using FPGAs. The activation function is the most necessary part of CNN. In this paper, Sigmoid function was chosen as the experiment object. The approximation ways of Sigmoid Function were listed and analysed, the piecewise forth-order approximation was the best way to fit Sigmoid Function. Parallel calculation circuit was designed by Verilog HDL on FPGAs, collecting dataset and inputing them to FPGA Platform and CPU Platform. The experiment result set forth that this solution had high efficiency and low error with rosy prospect about Deep-Learning and FPGA.

     

/

返回文章
返回