Hyperbolic tangent and Sigmoid functions are used as non-linear activation units in the artificial and deep neural networks. Since, these networks are computationally expensive, customized accelerators are designed for achieving the required performance at lower cost and power. The activation function and MAC units are the key building blocks of these neural networks. A low complexity and accurate hardware implementation of the activation function is required to meet the performance and area targets of such neural network accelerators. Moreover, a scalable implementation is required as the recent studies show that the DNNs may use different precision in different layers. This paper presents a novel method based on trigonometric expansion properties of the hyperbolic function for hardware implementation which can be easily tuned for different accuracy and precision requirements.
翻译:由于这些网络在计算上费用昂贵,定制的加速器是为了以较低的成本和功率达到要求的性能而设计的。激活功能和MAC装置是这些神经网络的关键构件。激活功能和MAC装置需要低复杂度和准确的硬件实施,才能达到神经网络加速器的性能和面积目标。此外,还需要一个可缩放的实施,因为最近的研究表明DNN可能在不同层次使用不同精度。本文介绍了一种基于硬件实施超曲直函数的三角扩展特性的新方法,可以很容易地根据不同精确度和精确性要求加以调整。