# US 2019/0244078 A1 · Reconfigurable systolic neural network engine

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

- Number: US 2019/0244078 A1
- Document ID: US20190244078A1
- Status: Published application
- Kind: A1
- Application number: 16/233,968
- Filed: 2018-12-27
- Published: 2019-08-08
- Earliest claimed: 2018-02-08
- Assignees: Western Digital Technologies, Inc.
- Applicants: Western Digital Technologies, Inc.
- Inventors: Luiz M. Franca-Neto
- Web page: https://patentgrep.com/patent/US20190244078A1

## CPC

- G06N 3/063: using electronic means
- G06F 18/21: Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
- G06F 18/22: Matching criteria, e.g. proximity measures
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/082: modifying the architecture, e.g. adding, deleting or silencing nodes or connections
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/82: using neural networks
- G06V 10/94: Hardware or software architectures specially adapted for image or video understanding
- G06V 10/955: {using specific electronic processors}
- G06F 18/217: {Validation; Performance evaluation; Active pattern learning techniques}
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- 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
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Some embodiments include a special-purpose hardware accelerator that can perform specialized machine learning tasks during both training and inference stages. For example, this hardware accelerator uses a systolic array having a number of data processing units (“DPUs”) that are each connected to a small number of other DPUs in a local region. Data from the many nodes of a neural network is pulsed through these DPUs with associated tags that identify where such data was originated or processed, such that each DPU has knowledge of where incoming data originated and thus is able to compute the data as specified by the architecture of the neural network. These tags enable the systolic neural network engine to perform computations during backpropagation, such that the systolic neural network engine is able to support training.

## Claims

### Claim 1

A device for performing computations of a neural network comprising at least a first layer and a second layer, the device comprising:
an array comprising a plurality of processing units including processing circuitry and memory, wherein the array is configured to transmit data systolically between particular processing units;
a computer-readable memory storing instructions for using the array to perform computations of the neural network; and
a controller configured by the instructions to:
determine a first computational load of the first layer and a second computational load of the second layer;
determine that the second computational load is greater than the first computational load;
assign a first subset of the processing units to perform computations of the first layer; and
assign a second subset of the processing units to perform computations of the second layer, wherein the second subset includes a greater number of processing units than the first subset.

### Claim 2 (depends on 1)

The device of claim 1, wherein the controller is configured to assign the first subset of the processing units to perform computations of the first layer based on the first computational load relative to the second computational load.

### Claim 3 (depends on 1)

The device of claim 1, wherein the controller is configured to assign a first subset of the processing units to perform computations of the first layer based on a proportion of the first computational load to a total computational load of the neural network.

### Claim 4 (depends on 1)

The device of claim 1, wherein the controller is configured to assign the first subset of the processing units such that the first subset takes an amount of time to perform the computations of the first layer and the controller is further configured to assign the second subset of the processing units such that the second subset takes substantially the same certain amount of time to perform the computations of the second layer.

### Claim 5 (depends on 4)

The device of claim 4, wherein the neural network includes additional layers, and wherein the controller is further configured by the instructions to assign an additional subset of processing units to the additional layers, such that the additional subset performs the computations of its associated additional layer in substantially the same duration of time as the first and second subset of processing nodes.

### Claim 6 (depends on 1)

The device of claim 1, wherein the processing power of at least two processing units are different, and wherein the controller is configured to assign a first subset of the processing units to perform computations of the first layer based on a processing power of the first subset of processing units relative to a total available processing power of the array.

### Claim 7 (depends on 1)

The device of claim 1, wherein the device is configured to provide input into the array, wherein the first subset of the processing units are configured to perform the computations of the first layer, and the second subset of the processing units are configured to perform the computations of the second layer, and the device is further configured to provide an output of the array as an output of the neural network.

### Claim 8 (depends on 1)

The device of claim 1, wherein the array comprises a plurality of systolic transfer structures including:
a first arrangement of processing units within the array, a second arrangement of processing units within the array, and a third arrangement of processing units within the array; and
a first bus configured to transfer data between the first and second arrangements, a second bus configured to transfer data between the second and third arrangements,
wherein a particular processing unit of the second arrangement includes an input systolic element configured to receive data systolically pulsed along the first bus and an output systolic element that systolically pulses output data along the second bus.

### Claim 9 (depends on 8)

The device of claim 8, wherein the controller is configured to program the particular processing unit with an identity that enables the particular processing unit to selectively provide a subset of the data received along the first bus to its processing circuitry.

### Claim 10

A method for performing computations of a neural network comprising at least a first layer, the method comprising by a processor:
determining a first computational load of the first layer and a total computational load of the neural network;
determining a proportionality of the first computational load to the total computational load; and
assigning a first subset of processing units to perform computations of the first layer based on the proportionality of the first computational load to the total computational load.

### Claim 11 (depends on 10)

The method of claim 10, wherein determining the first computational load of the first layer is based on at least a number of multiplications performed by nodes of the first layer.

### Claim 12 (depends on 11)

The method of claim 11, wherein determining the first computational load of the first layer is further based on at least one of: a size of an input to the neural network, a number of input channels, a number of output channels, or a size of a mask for a layer of the neural network.

### Claim 13 (depends on 10)

The method of claim 10, wherein the neural network further comprises a second layer, and the method further comprises:
determining a second computational load of the second layer; and
assigning a second subset of the processing units to perform computations of the second layer based on the first and second computational load.

### Claim 14 (depends on 13)

The method of claim 13, wherein the first and second subset of the processing units are assigned such that an amount of time used for the first subset to perform multiplications of the first layer is substantially equal to the amount of time required for the second subset to perform multiplications of the second layer.

### Claim 15

A controller including one or more processors configured to:
determine computational loads of one or more layers of a neural network, wherein the neural network includes at least a first and second layer; and
assign subsets of an array comprising a plurality of processing units to the one or more layers of the neural network, wherein the processing units include processing circuitry and memory, wherein the array is configured to transmit data systolically between particular processing units, wherein the subsets are assigned based on the computational load of the corresponding layer, wherein assigning subsets include assigning a first subset of processing units to the first layer and a second subset of processing units to the second layer.

### Claim 16 (depends on 15)

The controller of claim 15, wherein outputs from the first subset of processing units are systolically pulsed along at least one systolic transfer structure to the second subset of processing units.

### Claim 17 (depends on 15)

The controller of claim 15, wherein outputs from the second subset of processing units are systolically pulsed along at least one systolic transfer structure to the first subset of processing units.

### Claim 18 (depends on 15)

The controller of claim 15, wherein a first processing unit of the first subset is configured to tag its output with an identifying tuple, and a second processing unit of the second subset is configured by a controller to process the output of the first processing unit based on the identifying tuple.

### Claim 19 (depends on 18)

The controller of claim 18, wherein the identifying tuple includes a first piece of data indicating a layer to which the first processing unit is assigned, a second piece of data indicating a row in a pixel array where a pixel processed by the first processing unit is located, and a third piece of data indicating a column in the pixel array where the pixel processed by the first processing unit is located.

### Claim 20 (depends on 18)

The controller of claim 18, wherein outputs of the processing units of the first subset are systolically pulsed to the second processing unit, and wherein the second processing unit identifies a subset of the outputs for use in computations based on the identifying tuple tagged on the outputs, wherein the controller performs the operations by computer executable instructions stored in a non-transitory computer-readable medium.
