# US 2022/0292163 A1 · Dilated convolution using systolic array

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

- Number: US 2022/0292163 A1
- Document ID: US20220292163A1
- Status: Published application
- Kind: A1
- Application number: 17/832,039
- Filed: 2022-06-03
- Published: 2022-09-15
- Earliest claimed: 2019-06-28
- Assignees: Amazon Technologies, Inc.
- Applicants: Amazon Technologies, Inc.
- Inventors: Jeffrey T. Huynh; Ron Diamant
- Web page: https://patentgrep.com/patent/US20220292163A1

## CPC

- G06N 3/063: using electronic means
- G06F 15/8046: {Systolic arrays}
- G06F 17/153: {Multidimensional correlation or convolution}
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06V 30/413: Classification of content, e.g. text, photographs or tables
- H04L 49/9047: including multiple buffers, e.g. buffer pools
- G06F 2207/3892: Systolic array
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

In one example, a non-transitory computer readable medium stores instructions that, when executed by one or more hardware processors, cause the one or more hardware processors to: load a first weight data element of an array of weight data elements from a memory into a systolic array; select a subset of input data elements from the memory into the systolic array to perform first computations of a dilated convolution operation, the subset being selected based on a rate of the dilated convolution operation and coordinates of the weight data element within the array of weight data elements; and control the systolic array to perform the first computations based on the first weight data element and the subset to generate first output data elements of an output data array. An example of a compiler that generates the instructions is also provided.

## Claims

### Claim 1

A method comprising:
loading a first weight data element of a set of weight data elements from a memory into a systolic array;
determining a first set of memory fetch parameters based on a first computation instruction, the first set of memory fetch parameters including a first start address of a first subset of a set of input data elements in the memory, a gap between elements of the first subset in the memory, and a number of the first subset;
controlling a memory access circuit using the first set of memory fetch parameters to fetch the first subset from the memory to the systolic array; and
controlling the systolic array to perform first computations based on the first weight data element and the first subset to compute first partial sums.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
loading a second weight data element of the set of weight data elements from the memory into the systolic array;
determining a second set of memory fetch parameters based on a second computation instruction, the second set of memory fetch parameters including a second start address of a second subset of the set of input data elements in the memory, a gap between elements of the second subset in the memory, and a number of the second subset;
controlling the memory access circuit using the second set of memory fetch parameters to fetch the second subset from the memory to the systolic array; and
controlling the systolic array to perform second computations based on the second weight data element and the second subset to compute second partial sums.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
generating an output data array based on the first partial sums and the second partial sums.

### Claim 4 (depends on 1)

The method of claim 1, wherein the first computations are performed by multiplying each of the first subset of the set of input data elements with the first weight data element.

### Claim 5 (depends on 1)

The method of claim 1, wherein the first partial sums are accumulated with data stored in a summation buffer.

### Claim 6 (depends on 5)

The method of claim 5, wherein a size of the first subset of the set of input data elements is selected based on a size of the summation buffer.

### Claim 7 (depends on 1)

The method of claim 1, wherein the set of input data elements are stored in a contiguous address space within the memory.

### Claim 8

A non-transitory computer readable medium storing instructions that, when executed by one or more hardware processors, cause the one or more hardware processors to:
load a first weight data element of a set of weight data elements from a memory into a systolic array;
determine a first set of memory fetch parameters based on a first computation instruction, the first set of memory fetch parameters including a first start address of a first subset of a set of input data elements in the memory, a gap between elements of the first subset in the memory, and a number of the first subset;
control a memory access circuit using the first set of memory fetch parameters to fetch the first subset from the memory to the systolic array; and
control the systolic array to perform first computations based on the first weight data element and the first subset to compute first partial sums.

### Claim 9 (depends on 8)

The non-transitory computer readable medium of claim 8, wherein the one or more hardware processors are further caused to:
load a second weight data element of the set of weight data elements from the memory into the systolic array;
determine a second set of memory fetch parameters based on a second computation instruction, the second set of memory fetch parameters including a second start address of a second subset of the set of input data elements in the memory, a gap between elements of the second subset in the memory, and a number of the second subset;
control the memory access circuit using the second set of memory fetch parameters to fetch the second subset from the memory to the systolic array; and
control the systolic array to perform second computations based on the second weight data element and the second subset to compute second partial sums.

### Claim 10 (depends on 9)

The non-transitory computer readable medium of claim 9, wherein the one or more hardware processors are further caused to:
generate an output data array based on the first partial sums and the second partial sums.

### Claim 11 (depends on 8)

The non-transitory computer readable medium of claim 8, wherein the first computations are performed by multiplying each of the first subset of the set of input data elements with the first weight data element.

### Claim 12 (depends on 8)

The non-transitory computer readable medium of claim 8, wherein the first partial sums are accumulated with data stored in a summation buffer.

### Claim 13 (depends on 12)

The non-transitory computer readable medium of claim 12, wherein a size of the first subset of the set of input data elements is selected based on a size of the summation buffer.

### Claim 14 (depends on 8)

The non-transitory computer readable medium of claim 8, wherein the set of input data elements are stored in a contiguous address space within the memory.

### Claim 15

An apparatus comprising:
a memory storing a set of weight data elements and a set of input data elements;
a memory access circuit configured to access the memory;
a systolic array; and
a controller configured to:
load a first weight data element of the set of weight data elements from the memory into the systolic array;
determine a first set of memory fetch parameters based on a first computation instruction, the first set of memory fetch parameters including a first start address of a first subset of the set of input data elements in the memory, a gap between elements of the first subset in the memory, and a number of the first subset;
control the memory access circuit using the first set of memory fetch parameters to fetch the first subset from the memory to the systolic array; and
control the systolic array to perform first computations based on the first weight data element and the first subset to compute first partial sums.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the controller is further configured to:
load a second weight data element of the set of weight data elements from the memory into the systolic array;
determine a second set of memory fetch parameters based on a second computation instruction, the second set of memory fetch parameters including a second start address of a second subset of the set of input data elements in the memory, a gap between elements of the second subset in the memory, and a number of the second subset;
control the memory access circuit using the second set of memory fetch parameters to fetch the second subset from the memory to the systolic array; and
control the systolic array to perform second computations based on the second weight data element and the second subset to compute second partial sums.

### Claim 17 (depends on 16)

The apparatus of claim 16, wherein an output data array is generated based on the first partial sums and the second partial sums.

### Claim 18 (depends on 15)

The apparatus of claim 15, wherein the first computations are performed by multiplying each of the first subset of the set of input data elements with the first weight data element.

### Claim 19 (depends on 15)

The apparatus of claim 15, wherein the first partial sums are accumulated with data stored in a summation buffer.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein a size of the first subset of the set of input data elements is selected based on a size of the summation buffer.
