The invention discloses a
pruning fixed-point alternating neural network
compression device, which comprises a storage device, a
data processing chip, an editable logic device, a processor and an instruction controller, the instruction controller sends an instruction to trigger the storage device to output a target neural network weight matrix, and coordinates the working
time sequence of each structural member; the
data processing chip obtains a weight matrix, calculates the proportion of each row of non-zero elements to obtain the density, reads a corresponding sub-matrix according to a sub-matrix address, executes
pruning to generate a sparse sub-matrix and a
pruning mask, obtains a retraining matrix through retraining based on a complete
sparse matrix, converts the retraining matrix into a fixed-point number matrix, and determines a fixed-point strategy parameter; the editable logic device performs row index sorting on the weight matrix according to the density, and divides the weight matrix into a plurality of mutually exclusive subsets in a snakelike manner to obtain submatrix addresses; and the processor reorganizes the sparse sub-matrix into a complete
sparse matrix through a deployed module, performs fixed-point training on the fixed-point number matrix in combination with the pruning
mask, and stores the trained matrix into a storage device.