# US 2023/0267300 A1 · Data Stream-based Computation Unit, Artificial Intelligence Chip, and Accelerator

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2023/0267300 A1
- Document ID: US20230267300A1
- Status: Published application
- Kind: A1
- Application number: 18/156,379
- Filed: 2023-01-18
- Published: 2023-08-24
- Earliest claimed: 2022-02-23
- Assignees: Shenzhen Corerain Technologies Co., Ltd.
- Applicants: Shenzhen Corerain Technologies Co., Ltd.
- Inventors: Chenchen Lu; Kuen Hung Tsoi; Xinyu Niu
- Web page: https://patentgrep.com/patent/US20230267300A1

## CPC

- G06N 3/02: Neural networks
- G06F 7/5443: {Sum of products (for applications thereof, see the relevant places, e.g. G06F17/10, H03H17/00)}
- G06F 9/30007: {to perform operations on data operands}
- G06F 17/153: {Multidimensional correlation or convolution}
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 20/00: Machine learning
- G06F 9/38: Concurrent instruction execution, e.g. pipeline or look ahead
- G06N 3/063: using electronic means
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

Disclosed are a data stream-based computation unit, an artificial intelligence chip, and an accelerator. The computation unit includes a plurality of computation circuits, each computation circuit including a first input terminal and a second input terminal, wherein M first input terminals of M computation circuits receive M pieces of first data required for a computation task on a one-to-one basis, where M2 and M is a positive integer; M second input terminals receive M pieces of second data distinct from each other required for the computation task on a one-to-one basis; the M computation circuits perform the computation task in parallel on the basis of the M pieces of first data and the M pieces of second data, wherein each computation circuit performs the computation task on the basis of one piece of first data and one piece of second data.

## Claims

### Claim 1

A data stream-based computation unit, comprising a plurality of computation circuits, each computation circuit comprising a first input terminal and a second input terminal, wherein
M first input terminals of M computation circuits in the plurality of computation circuits are configured to receive M pieces of first data required for performing a computation task on a one-to-one basis, where M2 and M is a positive integer;
M second input terminals of the M computation circuits are configured to receive M pieces of second data distinct from each other required for performing the computation task on a one-to-one basis;
the M computation circuits are configured to perform the computation task in parallel on the basis of the M pieces of first data and the M pieces of second data, wherein each computation circuit of the M computation circuits is configured to perform the computation task on the basis of one piece of first data and one piece of second data.

### Claim 2 (depends on 1)

The computation unit according to claim 1, wherein the computation task is a computation in a neural network model.

### Claim 3 (depends on 2)

The computation unit according to claim 2, wherein
the computation task is a convolution, and the M pieces of first data are identical to each other;
each piece of first data comprises feature map data corresponding to M pieces of convolution kernel data in a feature map, and each piece of second data comprises one of the M pieces of convolution kernel data.

### Claim 4 (depends on 3)

The computation unit according to claim 3, wherein the feature map data comprises feature map sub-data of N channels, each piece of convolution kernel data comprises weight data of N channels, either the feature map sub-data of each channel or the weight data of each channel is an m×n matrix, where N2, n1, m1, and N, m and n are all positive integers;
at least one computation circuit of the M computation circuits comprises:
a plurality of multipliers, each multiplier of N multipliers in the plurality of multipliers being configured to multiply an element in an i-th row and a j-th column of the feature map sub-data of a corresponding channel by an element in an i-th row and a j-th column of the weight data of the corresponding channel to obtain a plurality of first computation results, wherein the N multipliers correspond to the feature map sub-data of N channels on a one-to-one basis and correspond to the weight data of N channels on a one-to-one basis, where 1im, 1jn, and i and j are both positive integers; and
an accumulator configured to perform an accumulation operation to obtain a result of the convolution, the accumulation operation comprising performing a first accumulation operation on the plurality of first computation results of each of the N multipliers.

### Claim 5 (depends on 4)

The computation unit according to claim 4, wherein the accumulation operation further comprises a second accumulation operation on a result of the first accumulation operation and a piece of bias data to obtain the result of the convolution.

### Claim 6 (depends on 4)

The computation unit according to claim 4, wherein the accumulator comprises:
a first accumulator configured to perform N third accumulation operations to obtain N second computation results, wherein performing each third accumulation operation comprises accumulating the plurality of first computation results of one multiplier of the N multipliers to obtain the second computation result; and
a second accumulator configured to accumulate the N second computation results to obtain the result of the convolution.

### Claim 7 (depends on 4)

The computation unit according to claim 4, wherein a number of the plurality of multipliers is P, where 16P256, and P is a positive integer.

### Claim 8 (depends on 1)

An artificial intelligence chip, comprising:
a data stream-based computation unit according to claim 1; and
a data buffer connected to the first input terminal and the second input terminal of the plurality of computation circuits and configured to transmit the M pieces of first data to the M computation circuits on a one-to-one basis and transmit the M pieces of second data to the M computation circuits on a one-to-one basis in response to a drive signal corresponding to the computation task.

### Claim 9 (depends on 2)

An artificial intelligence chip, comprising:
a data stream-based computation unit according to claim 2; and
a data buffer connected to the first input terminal and the second input terminal of the plurality of computation circuits and configured to transmit the M pieces of first data to the M computation circuits on a one-to-one basis and transmit the M pieces of second data to the M computation circuits on a one-to-one basis in response to a drive signal corresponding to the computation task.

### Claim 10 (depends on 3)

An artificial intelligence chip, comprising:
a data stream-based computation unit according to claim 3; and
a data buffer connected to the first input terminal and the second input terminal of the plurality of computation circuits and configured to transmit the M pieces of first data to the M computation circuits on a one-to-one basis and transmit the M pieces of second data to the M computation circuits on a one-to-one basis in response to a drive signal corresponding to the computation task.

### Claim 11 (depends on 8)

The artificial intelligence chip according to claim 8, wherein the data buffer is connected to the first input terminals of the plurality of computation circuits on a one-to-one basis via a first set of data paths, and is connected to the second input terminals of the plurality of computation circuits on a one-to-one basis via a second set of data paths; the artificial intelligence chip further comprises:
a switching circuit configured to control, in response to a control signal corresponding to the computation task, M data paths of at least one set of data paths of the first set of data paths and the second set of data paths that are connected to the M computation circuits to be conductive, other data paths being not conductive.

### Claim 12 (depends on 11)

The artificial intelligence chip according to claim 11, wherein the switching circuit comprises a plurality of switches disposed on the at least one set of data paths on a one-to-one basis.

### Claim 13 (depends on 8)

An accelerator, comprising:
the artificial intelligence chip according to claim 8.

### Claim 14

A data stream-based computation method, comprising:
receiving M pieces of first data required for performing a computation task on a one-to-one basis by M first input terminals of M computation circuits in a plurality of computation circuits, where M2 and M is a positive integer;
receiving M pieces of second data distinct from each other required for performing the computation task on a one-to-one basis by M second input terminals of the M computation circuits; and
performing the computation task in parallel on the basis of the M pieces of first data and the M pieces of second data by the M computation circuits, wherein each of the M computation circuits performs the computation tasks on the basis of one piece of first data and one piece of second data.

### Claim 15 (depends on 14)

The method according to claim 14, wherein the computation task is a computation in a neural network model.

### Claim 16 (depends on 15)

The method according to claim 15, wherein
the computation task is a convolution, and the M pieces of first data are identical to each other;
each piece of first data comprises feature map data corresponding to M pieces of convolution kernel data in a feature map, and each piece of second data comprises one of the M pieces of convolution kernel data.

### Claim 17 (depends on 16)

The method according to claim 16, wherein the feature map data comprises feature map sub-data of N channels, each piece of convolution kernel data comprises weight data of N channels, either the feature map sub-data of each channel or the weight data of each channel is an m×n matrix, where N2, n1, m1, and N, m and n are all positive integers;
at least one computation circuit of the M computation circuits comprises a plurality of multipliers and an accumulator, and the at least one computation circuit performs the convolution in such a manner that
each multiplier of N multipliers in the plurality of multipliers multiplies an element in an i-th row and a j-th column of the feature map sub-data of a corresponding channel by an element in an i-th row and a j-th column of the weight data of the corresponding channel to obtain a plurality of first computation results, wherein the N multipliers correspond to the feature map sub-data of N channels on a one-to-one basis and correspond to the weight data of N channels on a one-to-one basis, where 1im, 1 jn, and i and j are both positive integers; and
an accumulator performs an accumulation operation to obtain a result of the convolution, the accumulation operation comprising performing a first accumulation operation on the plurality of first computation results of each of the N multipliers.

### Claim 18 (depends on 17)

The method according to claim 17, wherein the accumulation operation further comprises a second accumulation operation on a result of the first accumulation operation and a piece of bias data to obtain the result of the convolution.

### Claim 19 (depends on 17)

The method according to claim 17, wherein the accumulator comprises a first accumulator and a second accumulator, the accumulator performing an accumulation operation to obtain a result of the convolution comprises:
performing N third accumulation operations to obtain N second computation results by the first accumulator, wherein performing each third accumulation operation comprises accumulating the plurality of first computation results of one multiplier of the N multipliers to obtain the second computation result; and
accumulating the N second computation results to obtain the result of the convolution by the second accumulator.

### Claim 20 (depends on 17)

The method according to claim 17, wherein a number of the plurality of multipliers is P, where 16P256, and P is a positive integer.
