# US 2022/0292632 A1 · Method for computing, computing device, and computer-readable storage medium

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

- Number: US 2022/0292632 A1
- Document ID: US20220292632A1
- Status: Published application
- Kind: A1
- Application number: 17/692,198
- Filed: 2022-03-11
- Published: 2022-09-15
- Earliest claimed: 2021-03-12
- Assignees: Shanghai Biren Technology Co., Ltd
- Applicants: Shanghai Biren Technology Co.,Ltd
- Inventors: YuFei ZHANG; Zhu LIANG; ChengKun SUN
- Web page: https://patentgrep.com/patent/US20220292632A1

## CPC

- G06T 3/4023: based on decimating pixels or lines of pixels; based on inserting pixels or lines of pixels
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

A method for computing, a computing device, and a computer-readable storage medium are provided. The method includes determining a first pixel block in a cache. The first pixel block is composed of a 2m row×2n column pixel matrix and includes original pixel data and pixel data related to the original pixel data. The first pixel block is read from the cache. At least part of the pixel data related to the original pixel data is used for padding related to the original pixel data. The original pixel data includes pixel data from the (n+1)th column to the 2nth column in the (m+1)th row to the 2mth row in the 2m row×2 n column pixel matrix. When reading data from the cache, pixel data that needs to be obtained after insert-zero and padding operations on the original pixel data in back propagation can be read at one time.

## Claims

### Claim 1

A method for computing, comprising:
determining a first pixel block in a cache, wherein the first pixel block is composed of a 2m row×2n column pixel matrix and comprises original pixel data and pixel data related to the original pixel data, where m and n are positive integers; and
reading the first pixel block from the cache,
wherein at least part of the pixel data related to the original pixel data is used for padding related to the original pixel data, and the original pixel data comprises pixel data from an (n+1)th column to a 2nth column in an (m+1)th row to a 2mth row in the 2m row×2n column pixel matrix.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
determining p rows from 2m rows of the 2m row×2n column pixel matrix based on a coordinate in a vertical direction indicated by a padding configuration related to the original pixel data to obtain a p row×2n column pixel matrix;
determining q columns from 2n columns of the determined p row×2n column pixel matrix based on a coordinate in a horizontal direction indicated by the padding configuration to obtain a p row×q column pixel matrix, where p and q are positive integers;
performing an insert-zero operation on the p row×q column pixel matrix to expand the p row×q column pixel matrix to a 2p row×2q column pixel matrix.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the 2m rows are 4 rows, and determining the p rows from the 2m rows of the 2m row×2n column pixel matrix comprises:
in response to the coordinate in the vertical direction indicated by the padding configuration being +3 or +2, selecting a 2nd row and a 3rd row from 4 rows of a 4 row×2n column pixel matrix to obtain a 2 row×2n column pixel matrix; and
in response to the coordinate in the vertical direction indicated by the padding configuration being +1 or 0, selecting a 3rd row and a 4th row from the 4 rows of the 4 row×2n column pixel matrix to obtain the 2 row×2n column pixel matrix.

### Claim 4 (depends on 3)

The method according to claim 3, wherein the 2n columns are 8 columns, and determining the q columns from the 2n columns of the determined p row×2n column pixel matrix comprises:
in response to the coordinate in the horizontal direction indicated by the padding configuration being 0 or +1, selecting a 5th column to an 8th column from 2n columns of the 2 row×2n column pixel matrix to obtain a 2 row×4 column pixel matrix; and
in response to the coordinate in the horizontal direction indicated by the padding configuration being +2 or +3, selecting a 4th column to a 7th column from the 2n columns of the 2 row×2n column pixel matrix to obtain the 2 row×4 column pixel matrix.

### Claim 5 (depends on 2)

The method according to claim 2, wherein performing the insert-zero operation on the p row×q column pixel matrix comprises:
inserting a row of zeros into every other row of the p row pixel matrix; and
inserting a column of zeros into every other column of the q column pixel matrix to obtain the 2p row×2q column pixel matrix.

### Claim 6 (depends on 2)

The method according to claim 2, further comprising:
determining the padding configuration based on a size of a filter related to the original pixel data.

### Claim 7 (depends on 1)

The method according to claim 1, wherein the 2m row×2n column pixel matrix is a 4 row×8 column pixel matrix.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the original pixel matrix is a 2 row×4 column pixel matrix.

### Claim 9 (depends on 1)

The method according to claim 1, wherein the pixel data related to the original pixel data comprises pixel data from a 1st column to a 2nth column in a 1st row to an mth row and pixel data from a 1st column to an nth column in an (m+1)th row to a 2mth row in the 2m row×2n column pixel matrix.

### Claim 10 (depends on 1)

A computing device, comprising:
at least one processing unit; and
at least one memory, coupled to the at least one processing unit and storing an instruction for execution by the at least one processing unit, wherein when the instruction is executed by the at least one processing unit, the computing device executes steps of the method according to claim 1.

### Claim 11 (depends on 1)

A non-transitory computer-readable storage medium, storing a computer instruction, wherein the computer instruction is used for a computer to execute the method according to claim 1.
