Matrix operation device and operation method thereof
By introducing a pre-read circuit and a control circuit into the matrix calculation device, whether to perform multiplication and accumulation operations based on the pre-read data of the matrix is determined, which solves the problem of low efficiency of matrix multiplication operations in the prior art, and realizes a more efficient matrix multiplication operation.
Patent Information
- Application Number
- CN202010988537.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-08-18
- Filing Date
- 2020-09-18
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2040-09-18
AI Technical Summary
The prior art is less efficient when performing matrix multiplication operations, especially when processing a matrix containing a large number of zero elements, there is an unnecessary multiplication accumulation operation.
A matrix computing device is designed, including a memory unit, a multiplication and accumulation circuit, a pre-read circuit and a control circuit. By pre-reading the columns or rows of the pre-reading matrix as pre-reading data, the control circuit decides whether to perform multiplication and accumulation operations based on the pre-reading data, thereby reducing unnecessary calculations.
It effectively reduces unnecessary multiplication and accumulation operations, improves the efficiency of matrix multiplication operations, and saves significantly the operation time when processing matrixes containing zero elements.