# US 2022/0292344 A1 · Processing data in pixel-to-pixel neural networks

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

- Number: US 2022/0292344 A1
- Document ID: US20220292344A1
- Status: Published application
- Kind: A1
- Application number: 17/200,090
- Filed: 2021-03-12
- Published: 2022-09-15
- Earliest claimed: 2021-03-12
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: David HANSEN; Alireza SHOA HASSANI LASHDAN; Sivakumar CHIDAMBARAM; Haoping XU; Jeffrey Kar Fai WONG; Stone YUN; Darren GNANAPRAGASAM
- Web page: https://patentgrep.com/patent/US20220292344A1

## CPC

- G06N 3/045: Combinations of networks
- G06N 3/08: Learning methods
- G06F 18/2163: {Partitioning the feature space}
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06V 10/82: using neural networks
- 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

## Abstract

Technologies are provided for processing data in neural networks. An example method can include processing, by each layer of a neural network, a row in a first stripe of a data input, the row being processed sequentially in a horizontal direction and according to a layer-by-layer sequence; after processing the row, processing, by each layer, subsequent rows in the first stripe on a row-by-row basis, each subsequent row being processed sequentially in the horizontal direction and according to the layer-by-layer sequence; generating an output stripe based on the processing of the row and subsequent rows; processing, by each layer, a second stripe of the data input, each row in the second stripe being processed in the horizontal direction and according to the layer-by-layer sequence, wherein rows in the second stripe are processed on a row-by-row basis; and generating another output stripe based on the processing of the second stripe.

## Claims

### Claim 1

A apparatus comprising:
memory; and
one or more processors coupled to the memory, the one or more processors being configured to:
obtain input data comprising stripes that logically segment the input data, each stripe of the input data including at least one row of data;
process, by each layer of a neural network, a row of data in a first stripe of the input data, wherein the row of data is processed sequentially in a horizontal direction and according to a layer-by-layer sequence where each preceding layer of the neural network processes a particular row of data before each subsequent layer of the neural network;
after processing the row of data in the first stripe, process, by each layer of the neural network, subsequent rows of data in the first stripe on a row-by-row basis, wherein each subsequent row of data is processed sequentially in the horizontal direction and according to the layer-by-layer sequence;
generate, by the neural network, a first output stripe based on the processing of the row of data and the subsequent rows of data;
after processing the first stripe, process, by each layer of the neural network, rows of data in a second stripe of the input data on a row-by-row basis, wherein each row of data in the second stripe is processed in the horizontal direction and according to the layer-by-layer sequence; and
generate a second output stripe based on the processing of the second stripe.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein, to process the row of data in the first stripe sequentially in the horizontal direction, the one or more processors are configured to:
sequentially process, by each layer of the neural network, a plurality of blocks of data in the row, wherein each layer of the neural network processes each preceding block of data along a depth direction before processing a subsequent block along the horizontal direction.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein, to process the subsequent rows, the one or more processors are configured to:
sequentially process, by each layer of the neural network, a respective plurality of blocks of data in each subsequent row, wherein each layer of the neural network processes preceding blocks of data in a subsequent row along the depth direction before processing subsequent blocks of data in the subsequent row.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the neural network comprises a pixel-to-pixel neural network, and wherein the input data comprises pixels associated with an image.

### Claim 5 (depends on 1)

The apparatus of claim 1, wherein, to obtain the input data, the one or more processors are configured to:
logically segment the input data into the stripes, wherein each stripe comprises a respective portion of the input data.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the one or more processors are configured to:
store, in a first memory, an output generated by a previous layer of the neural network for one or more blocks in the row of data in the first stripe; and
store, in a second memory associated with a particular layer of the neural network, one or more lines of data from the one or more blocks in the row of data, wherein the one or more lines of data comprise a portion of a data input of the particular layer of the neural network on a previous stripe-block-row.

### Claim 7 (depends on 6)

The apparatus of claim 6, wherein the one or more processors are configured to:
generate an input for the particular layer of the neural network based on a combination of the output generated by the previous layer and the one or more lines of data comprising the portion of the data input of the particular layer on the previous stripe-block-row; and
generate, by the particular layer of the neural network, an additional output based on the output for the previous layer.

### Claim 8 (depends on 7)

The apparatus of claim 7, wherein the one or more processors are configured to:
determine a portion of the input for the particular layer; and
store the portion of the input in a third memory associated with the particular layer of the neural network.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the one or more processors are configured to:
generate an additional input for the subsequent layer of the neural network based on a combination of the additional output of the particular layer and the portion of the input for a subsequent layer from a previous stripe-block-row of the subsequent layer; and
generate, by the subsequent layer of the neural network, a second additional output based on the additional input for the subsequent layer.

### Claim 10 (depends on 9)

The apparatus of claim 9, wherein the one or more processors are configured to:
store the second additional output in fourth memory, wherein the second memory and the third memory comprise line stores in a line store memory, and wherein the first memory and the fourth memory comprise buffers in scratch memory.

### Claim 11 (depends on 1)

The apparatus of claim 1, wherein the one or more processors are configured to:
store, in a first memory associated with a particular layer of the neural network, outputs generated by a previous layer of the neural network for one or more blocks in each subsequent row of data; and
store, in a second memory, one or more lines of data from the one or more blocks in each subsequent row of data, wherein the one or more lines of data comprise one or more portions of one or more data inputs of the particular layer of the neural network.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the one or more processors are configured to:
generate inputs for the particular layer of the neural network based on combinations of the outputs generated by the previous layer and the one or more lines of data comprising the one or more portions of the one or more data inputs of the particular layer for a previous stripe-block-row; and
generate, by the particular layer of the neural network, additional outputs based on the outputs from the previous layer and a subset of the inputs from the particular layer on the previous stripe-block-row.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the one or more processors are configured to:
determine portions of the inputs for the particular layer;
store the portions of the inputs in a third memory associated with a subsequent layer of the neural network; and
store the additional outputs in a fourth memory, wherein the second memory and the fourth memory comprise memory buffers.

### Claim 14 (depends on 1)

The apparatus of claim 1, wherein, to process the row of data, the one or more processors are configured to:
process, by each subsequent layer of the neural network, an output of a preceding layer of the neural network, the output corresponding to the row of data.

### Claim 15 (depends on 1)

The apparatus of claim 1, wherein, to process the subsequent rows of data, the one or more processors are configured to:
process, by each subsequent layer of the neural network, an output of a preceding layer of the neural network, the output corresponding to a subsequent row of data in the first stripe.

### Claim 16 (depends on 1)

The apparatus of claim 1, wherein the apparatus comprises a camera device.

### Claim 17 (depends on 1)

The apparatus of claim 1, wherein the apparatus comprises a mobile device.

### Claim 18

A method comprising:
obtaining input data comprising stripes that logically segment the input data, each stripe of the input data including at least one row of data;
processing, by each layer of a neural network, a row of data in a first stripe of the input data, wherein the row of data is processed sequentially in a horizontal direction and according to a layer-by-layer sequence where each preceding layer of the neural network processes a particular row of data before each subsequent layer of the neural network;
after processing the row of data in the first stripe, processing, by each layer of the neural network, subsequent rows of data in the first stripe on a row-by-row basis, wherein each subsequent row of data is processed sequentially in the horizontal direction and according to the layer-by-layer sequence;
generating, by the neural network, a first output stripe based on the processing of the row of data and the subsequent rows of data;
after processing the first stripe, processing, by each layer of the neural network, rows of data in a second stripe of the input data on a row-by-row basis, wherein each row of data in the second stripe is processed in the horizontal direction and according to the layer-by-layer sequence; and
generating a second output stripe based on the processing of the second stripe.

### Claim 19 (depends on 18)

The method of claim 18, wherein processing the row of data in the first stripe sequentially in the horizontal direction comprises:
sequentially processing, by each layer of the neural network, a plurality of blocks of data in the row, wherein each layer of the neural network processes each preceding block of data along a depth direction before processing a subsequent block along the horizontal direction.

### Claim 20 (depends on 19)

The method of claim 19, wherein processing the subsequent rows comprises:
sequentially processing, by each layer of the neural network, a respective plurality of blocks of data in each subsequent row, wherein each layer of the neural network processes preceding blocks of data in a subsequent row along the depth direction before processing subsequent blocks of data in the subsequent row.

### Claim 21 (depends on 18)

The method of claim 18, wherein the neural network comprises a pixel-to-pixel neural network, and wherein the input data comprises pixels associated with an image.

### Claim 22 (depends on 18)

The method of claim 18, wherein obtaining the input data comprises:
logically segmenting the input data into the stripes, wherein each stripe comprises a respective portion of the input data.

### Claim 23 (depends on 18)

The method of claim 18, further comprising:
storing, in a first memory, an output generated by a previous layer of the neural network for one or more blocks in the row of data in the first stripe; and
storing, in a second memory associated with a particular layer of the neural network, one or more lines of data from the one or more blocks in the row of data, wherein the one or more lines of data comprise a portion of a data input of the particular layer of the neural network on a previous stripe-block-row.

### Claim 24 (depends on 23)

The method of claim 23, further comprising:
generating an input for the particular layer of the neural network based on a combination of the output generated by the previous layer and the one or more lines of data comprising the portion of the data input of the particular layer on the previous stripe-block-row;
generating, by the particular layer of the neural network, an additional output based on the output for the previous layer;
determining a portion of the input for the particular layer; and
storing a portion of the input for the particular layer of the neural network in a third memory associated with the particular layer of the neural network.

### Claim 25 (depends on 24)

The method of claim 24, further comprising:
generating an additional input for the subsequent layer of the neural network based on a combination of the additional output of the particular layer and the portion of the input for a subsequent layer from a previous stripe-block-row of the subsequent layer;
generating, by the subsequent layer of the neural network, a second additional output based on the additional input for the subsequent layer; and
storing the second additional output in fourth memory, wherein the second memory and the third memory comprise line stores in a line store memory, and wherein the first memory and the fourth memory comprise buffers in scratch memory.

### Claim 26 (depends on 18)

The method of claim 18, further comprising:
storing, in a first memory associated with a particular layer of the neural network, outputs generated by a previous layer of the neural network for one or more blocks in each subsequent row of data; and
storing, in a second memory, one or more lines of data from the one or more blocks in each subsequent row of data, wherein the one or more lines of data comprise one or more portions of one or more data inputs of the particular layer of the neural network.

### Claim 27 (depends on 26)

The method of claim 26, further comprising:
generating inputs for the particular layer of the neural network based on combinations of the outputs generated by the previous layer and the one or more lines of data comprising the one or more portions of the one or more data inputs of the particular layer for a previous stripe-block-row; and
generating, by the particular layer of the neural network, additional outputs based on the outputs from the previous layer and a subset of the inputs from the particular layer on the previous stripe-block-row.

### Claim 28 (depends on 27)

The method of claim 27, further comprising:
determine portions of the inputs for the particular layer;
storing the portions of the inputs in a third memory associated with a subsequent layer of the neural network; and
storing the additional outputs in a fourth memory, wherein the second memory and the fourth memory comprise memory buffers.

### Claim 29 (depends on 18)

The method of claim 18, wherein processing the row of data comprises processing, by each subsequent layer of the neural network, an output of a preceding layer of the neural network, the output corresponding to the row of data, and wherein processing the subsequent rows of data comprises processing, by each subsequent layer of the neural network, an output of a preceding layer of the neural network, the output corresponding to a subsequent row of data in the first stripe.

### Claim 30

A non-transitory computer-readable medium having stored thereon instructions which, when executed by one or more processors, cause the one or more processors to:
obtain input data comprising stripes that logically segment the input data, each stripe of the input data including at least one row of data;
process, by each layer of a neural network, a row of data in a first stripe of the input data, wherein the row of data is processed sequentially in a horizontal direction and according to a layer-by-layer sequence where each preceding layer of the neural network processes a particular row of data before each subsequent layer of the neural network;
after processing the row of data in the first stripe, process, by each layer of the neural network, subsequent rows of data in the first stripe on a row-by-row basis, wherein each subsequent row of data is processed sequentially in the horizontal direction and according to the layer-by-layer sequence;
generate, by the neural network, a first output stripe based on the processing of the row of data and the subsequent rows of data;
after processing the first stripe, process, by each layer of the neural network, rows of data in a second stripe of the input data on a row-by-row basis, wherein each row of data in the second stripe is processed in the horizontal direction and according to the layer-by-layer sequence; and
generate a second output stripe based on the processing of the second stripe.
