Neural network compensation method, device and circuit based on integrated memory calculation circuit
Патент · CN B
Полный текст
A neural network compensation method, device and circuit based on a memory integrated circuit relates to the technical field of computers and is used for compensating calculation errors when the memory integrated circuit performs neural network calculation, so that the accuracy of multiply-add calculation is improved, and the end-to-end effect of the neural network is ensured. The method comprises the steps of obtaining configuration information, wherein the configuration information is used for indicating at least one multiply-add calculation layer to be compensated in a plurality of multiply-add calculation layers of the neural network and at least one compensation circuit corresponding to the at least one multiply-add calculation layer, the at least one compensation circuit is used for compensating calculation errors of the at least one multiply-add calculation layer, and in the process of running the neural network in an integrated circuit, the calculation results of the at least one multiply-add calculation layer are compensated by the at least one compensation circuit indicated by the configuration information.