The invention relates to a neural
network data operation acceleration device and method, equipment and a medium, and the method comprises the steps: firstly obtaining the input data of neural network operation and Cin
convolution kernel data, dividing a
feature matrix SMF into N feature sub-matrixes MF in a C direction, generating an index table of
img2col operation after pad for each feature sub-matrix MF, and carrying out the calculation of the
img2col operation according to the index table. According to the method, firstly, an index table generating
img2col operation is mapped back to an index table of an original
feature matrix SMF, finally, localization of data of neural network operation is achieved, operation
processing is carried out, multiple sliding windows can be calculated at a time, in other words, multiple pieces of data can be read at a time, and therefore the number of times of
data access is greatly reduced, and the operation efficiency is greatly improved. Compared with the prior art, localization operation of the neural network is achieved, cache occupation of a computer is effectively reduced, the number of times of access to the
feature data is reduced, and the method can be universally used for operation acceleration of various neural networks.