# US 2023/0273829 A1 · Dilated convolution acceleration calculation method and apparatus

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

- Number: US 2023/0273829 A1
- Document ID: US20230273829A1
- Status: Published application
- Kind: A1
- Application number: 18/014,635
- Filed: 2020-11-03
- Published: 2023-08-31
- Earliest claimed: 2020-07-08
- Assignees: Canaan Bright Sight Co., Ltd
- Applicants: Canaan Bright Sight Co., Ltd.
- Inventors: Bing XU; Nangeng ZHANG
- Web page: https://patentgrep.com/patent/US20230273829A1

## CPC

- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06N 3/063: using electronic means
- G06F 7/50: Adding; Subtracting (G06F7/483 - G06F7/491, G06F7/544 - G06F7/556 take precedence)
- G06F 7/523: Multiplying only
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- 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

A dilated convolution acceleration calculation method and apparatus. The method comprises: decomposing a dilated convolution computation of R×S into S sub-dilated convolution computations of R×1 (301); for each sub-dilated convolution computation, caching a plurality of weight values in parallel to a plurality of calculation units in a calculation unit array (302); determining, from input image data, a plurality of input data streams respectively corresponding to the plurality of weight values, and inputting the plurality of input data streams in parallel into the plurality of calculation units (303); within the plurality of calculation units, executing a sliding window operation and a multiplication operation on the basis of the cached weight values and the input data streams, and executing an accumulation operation between the plurality of calculation units, so as to output an intermediate result of the sub-dilated convolution computation (304); and superimposing intermediate results of the S sub-dilated convolution computations of R×1, so as to obtain a convolution result of the dilated convolution computation (305). By using the method, a dilated convolution operation is accelerated with a relatively low complexity, and the function of Im2col does not need to be separately realized, thereby reducing the complexity.

## Claims

### Claim 1

A method of accelerating dilated convolution computation, comprising:
decomposing a R×S dilated convolution operation into a number S of R×1 sub-dilated convolution operations, wherein the R refers to the height of a convolution kernel of the R×S dilated convolution operation, and the S refers to the width of the convolution kernel;
caching, for each of the R×1 sub-dilated convolution operations, a plurality of weight values in parallel into a plurality of computation units of a computation unit array;
determining, from input image data, a plurality of input data streams respectively corresponding to the plurality of weight values, and inputting the plurality of input data streams in parallel into the plurality of computation units;
performing, by the plurality of computation units, sliding window operations and multiplication operations based on respective cached weight values and respective inputted input data streams, and performing accumulation operations among the plurality of computation units to output an intermediate result of said each R×1 sub-dilated convolution operation; and
adding up the respective intermediate results of the R×1 sub-dilated convolution operations to acquire a convolution result of the R×S dilated convolution operation.

### Claim 2 (depends on 1)

The method according to claim 1, wherein each of the plurality of input data streams respectively corresponding to the plurality of weight values is determined by reading required data from the input image data according to a dilation rate and a stride of the R×S dilated convolution operation and concatenating the read data.

### Claim 3 (depends on 1)

The method according to claim 1, wherein each of the plurality of input data streams respectively corresponding to the plurality of weight values is determined by reading a plurality of rows of data from the input image data according to a dilation rate and a stride of the R×S dilated convolution operation and concatenating the read rows of data.

### Claim 4 (depends on 1)

The method according to claim 1, wherein a sliding step of the sliding window operations is determined according to a stride of the R×S dilated convolution operation.

### Claim 5 (depends on 1)

The method according to claim 1, wherein adding up the respective intermediate results of the R×1 sub-dilated convolution operations comprises: accumulating the respective intermediate results of the R×1 sub-dilated convolution operations in real time during the R×1 sub-dilated convolution operations, or adding up the respective intermediate results after completion of the R×1 sub-dilated convolution operations.

### Claim 6

An apparatus for accelerating dilated convolution computation, comprising a logic control unit and a computation unit array, wherein the logic control unit is configured to: decompose a R×S dilated convolution operation into a number S of R×1 sub-dilated convolution operations, wherein R refers to the height of a convolution kernel of the R×S dilated convolution operation, and S refers to the width of the convolution kernel; cache, for each of the R×1 sub-dilated convolution operations, a plurality of weight values in parallel into a plurality of computation units of a computation unit array; and determine, from input image data, a plurality of input data streams respectively corresponding to the plurality of weight values and inputting the plurality of input data streams in parallel into the plurality of computation units; and
the computation unit array is configured to: perform, by the plurality of computation units, sliding window operations and multiplication operations based on respective cached weight values and respective inputted input data streams, and perform accumulation operations among the plurality of computation units to output an intermediate result of said each R×1 sub-dilated convolution operation; and add up the respective intermediate results of the R×1 sub-dilated convolution operations to acquire a convolution result of the R×S dilated convolution operation.

### Claim 7 (depends on 6)

The apparatus according to claim 6, wherein the logic control unit is configured to determine each of the plurality of input data streams respectively corresponding to the plurality of weight values by reading required data from the input image data according to a dilation rate and a stride of the R×S dilated convolution operation and concatenating the read data.

### Claim 8 (depends on 6)

The apparatus according to claim 6, wherein the logic control unit is configured to determine each of the plurality of input data streams respectively corresponding to the plurality of weight values by reading a plurality of rows of data from the input image data according to a dilation rate and a stride of the R×S dilated convolution operation and concatenating the read rows of data.

### Claim 9 (depends on 6)

The apparatus according to claim 6, wherein a sliding step of the sliding window operations is determined according to a stride of the R×S dilated convolution operation.

### Claim 10 (depends on 6)

The apparatus according to claim 6, wherein the computation unit array is configured to accumulate the respective intermediate results of the R×1 sub-dilated convolution operations in real time during the R×1 sub-dilated convolution operations, or add up the respective intermediate results after completion of the R×1 sub-dilated convolution operations.
