IP Library Granted Patent US 11,907,329
Granted Patent B2
US 11,907,329 · App. 17/328,006 · Granted Feb 20, 2024

Convolution calculation apparatus and method

Inventors: Fabo Bao (Fujian, CN); Donghao Liu (Fujian, CN); Wei Zhu (Fujian, CN); Chengwei Zheng (Fujian, CN)
Assignee: SIGMASTAR TECHNOLOGY LTD.
G06F17/153G06F9/545
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,907,329
App. No.
17/328,006
Granted
Feb 20, 2024
Kind
B2
Abstract

A convolution calculation apparatus applied for convolution calculation of a convolution layer includes a decompression circuit, a data combination circuit and a calculation circuit. The decompression circuit decompresses compressed weighting data of a convolution kernel of the convolution layer to generate decompressed weighting data. The data combination circuit combines the decompressed weighting data and non-compressed data of the convolution kernel to restore a data order of weighting data of the convolution kernel. The calculation circuit performs calculation according to the weighting data of the convolution kernel and input data of the convolution layer. Since the compressed weighting data of the convolution kernel is transmitted to the convolution calculation apparatus in advance, the compressed weighting data is first decompressed and then convolution calculation is performed accordingly, hence reducing the storage amount and transmission bandwidth used by the convolution kernel in an electronic apparatus.

Claims (21)

1. A convolution calculation apparatus, applied for convolution calculation of a convolution layer, the apparatus comprising:

a decompression circuit, decompressing compressed weighting data of a convolution kernel of the convolution layer to generate decompressed weighting data;

a data combination circuit, combining the decompressed weighting data and non-compressed data of the convolution kernel to restore a data order of weighting data of the convolution kernel;

a calculation circuit, performing calculation according to the weighting data of the convolution kernel and input data of the convolution layer; and

a conversion circuit, coupled between the data combination circuit and the calculation circuit, performing format conversion on the weighting data of the convolution kernel, and outputting the converted weighting data to the calculation circuit.

2. A convolution calculation apparatus, applied for convolution calcalution of a convolution layer, the apparatus comprising:

a decompression circuit, decompressing compressed weighting data of a convolution kernel of the convolution layer to generate decompressed weighting data;

a data combination circuit, combining the decompressed weighting data and non-compressed data of the convolution kernel to restore a data order of weighting data of the convolution kernel; and

a calculation circuit, performing calculation according to the weighting data of the convolution kernel and input data of the convolution layer,

wherein the weighting data of the convolution kernel comprises first-part data and second-part data, the compressed weighting data corresponds to the first-part data and the non-compressed weighting data corresponds to the second-part data.

3. The convolution calculation apparatus according to claim 2 , wherein the weighting data of the convolution kernel consists of a plurality of 8-bit binary values, and the first-part data of the weighting data consists of at least 2-bit binary values in each of the 8-bit binary values.

4. The convolution calculation apparatus according to claim 1 , wherein the compressed weighting data is compressed by using a Huffman compression format, and the decompression circuit decompresses the compressed weighting data according to a Huffman code table.

5. The convolution calculation apparatus according to claim 1 , wherein the compressed weighting data is stored in a first block of a memory, the non-compressed weighting data is stored in a second block of the memory, and the first block is different from the second block.

6. The convolution calculation apparatus according to claim 1 , wherein the compressed weighting data is compressed by a device outside an electronic apparatus provided with the convolution calculation apparatus.

7. A convolution calculation apparatus, applied for convolution calculation of a convolution layer, the apparatus comprising:

a decompression circuit, decompressing compressed weighting data of a convolution kernel of the convolution layer to generate decompressed weighting data;

a calculation circuit, performing calculation according to the decompressed weighting data and input data of the convolution layer; and

a conversion circuit, coupled between the decompression circuit and the calculation circuit, performing format conversion on the decompressed weighting data, and outputting the converted weighting data to the calculation circuit;

wherein, the compressed weighting data and the input data are respectively stored in different blocks of a memory.

8. The convolution calculation apparatus according to claim 7 , wherein the compressed weighting data is compressed by using a Huffman compression format, and the decompression circuit decompressed the compressed weighting data according to a Huffman code table.

9. The convolution calculation apparatus according to claim 7 , wherein the compressed weighting data is compressed by a device outside an electronic apparatus provided with the convolution calculation apparatus.

Assignments (2)
CHANGE OF NAME Recorded Aug 19, 2021
From: XIAMEN SIGMASTAR TECHNOLOGY LTD.
To: SIGMASTAR TECHNOLOGY LTD.
Reel/Frame 057307/0913 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 24, 2021
From: BAO, FABO; LIU, DONGHAO; ZHU, WEI; ZHENG, CHENGWEI
To: XIAMEN SIGMASTAR TECHNOLOGY LTD.
Reel/Frame 056329/0641 →
Priority Claims (1)
CN 202010988022.9 · Sep 18, 2020 · national
Continuity (1)
Related Publication 20220092151A1 · Mar 24, 2022