A neural network processing apparatus including:
- a decoding unit that decodes a first coefficient matrix encoded into a first zero coefficient position table and a first non-zero coefficient table, the first zero coefficient position table indicating positions of first coefficients each having a zero value in the first coefficient matrix by a first value and indicating positions of second coefficients each having a non-zero value in the first coefficient matrix by a second value, the first non-zero coefficient table holding the second coefficients in the first coefficient matrix;
- and
- a product-sum circuit that performs convolution processing on the first coefficient matrix decoded by the decoding unit and a first variable matrix,
- wherein the decoding unit decodes the first coefficient matrix by storing the second coefficients stored in the first non-zero coefficient table at the positions on the first zero coefficient position table indicated by the second value.