Xilinx, Inc.
Softmax calculation and architecture using a modified coordinate rotation digital computer (CORDIC) approach
Last updated:
Abstract:
Apparatus and associated methods relate to providing a modified CORDIC approach and implementing the modified CORDIC approach in SoftMax calculation to reduce usage of hardware resources. In an illustrative example, a system may include (a) a first circuit configured to transform each element Vi of an input vector V into V.sub.i=V.sub.pi+k.sub.iln 2 to generate a second data set, (b) a second circuit configured to perform exponential calculations on the second data set to generate a third data set that has a first mantissa .times..times..function. ##EQU00001## and an exponent K.sub.total, (c) a third circuit configured to perform logarithm calculations to generate a third sub data set that has a second mantissa .times..times..times..times..function. ##EQU00002## and, (d) a fourth circuit configured to perform exponential calculations to generate an output data set that has .times..times..times..times..function. ##EQU00003## the output data set may be interpreted as a probability distribution of each element V.sub.i of the input vector V.
Utility
21 Nov 2019
27 Sep 2022