# US 2021/0174178 A1 · Method and apparatus for processing data

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

- Number: US 2021/0174178 A1
- Document ID: US20210174178A1
- Status: Published application
- Kind: A1
- Application number: 16/896,500
- Filed: 2020-06-09
- Published: 2021-06-10
- Earliest claimed: 2019-12-06
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Hyunsun PARK; Yoojin KIM; Junwoo JANG
- Web page: https://patentgrep.com/patent/US20210174178A1

## CPC

- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- G06F 17/153: {Multidimensional correlation or convolution}
- G06F 18/213: Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N 3/063: using electronic means
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method of processing data includes manipulating input data based on a configuration of the input data and a configuration of hardware for processing the input data to generate manipulated data; rearranging the manipulated data based on sparsity of the manipulated data to generate rearranged data; and processing the rearranged data to generate output data.

## Claims

### Claim 1

A method of processing data, the method comprising:
manipulating input data, based on a configuration of the input data and a configuration of hardware for processing the input data, to generate manipulated data;
rearranging the manipulated data based on sparsity of the manipulated data to generate rearranged data; and
processing the rearranged data to generate output data.

### Claim 2 (depends on 1)

The method of claim 1, wherein manipulating the input data includes adding at least one channel configured by zeros to the input data based on the configuration of the hardware.

### Claim 3 (depends on 1)

The method of claim 1, wherein the input data is manipulated based on a number of first channels included in the input data and a number of second channels included in the hardware.

### Claim 4 (depends on 3)

The method of claim 3, wherein the input data is manipulated based on a value obtained by dividing the number of the second channels by the number of the first channels.

### Claim 5 (depends on 4)

The method of claim 4, wherein manipulating the input data includes adding n channels, each being configured by zeros, between the first channels, and
wherein n is a natural number less than or equal to the value obtained by dividing the number of the second channels by the number of the first channels.

### Claim 6 (depends on 1)

The method of claim 1, wherein manipulating the input data includes shifting elements of one or more columns included in the input data according to a specified rule.

### Claim 7 (depends on 6)

The method of claim 6, wherein the specified rule includes shifting the elements of the one or more columns by a specified size in a same direction, and
wherein the specified rule is applied periodically to the one or more columns.

### Claim 8 (depends on 1)

The method of claim 1, wherein rearranging the manipulated data includes shifting at least one element included in the manipulated data from a first position of a first column including the at least one element to a second position of a second column.

### Claim 9 (depends on 8)

The method of claim 8, wherein the first position of the first column and the second position of the second column correspond to each other.

### Claim 10 (depends on 8)

The method of claim 8, wherein the first position of the first column and the second position of the second column are different from each other.

### Claim 11 (depends on 1)

A non-transitory computer-readable recording medium having recorded thereon a program for executing the method of claim 1 on a computer.

### Claim 12

An apparatus for processing data, the apparatus comprising:
a memory in which at least one program is stored; and
a processor configured to execute the at least one program to:
manipulate input data based on a configuration of the input data and a configuration of hardware for processing the input data,
rearrange the manipulated data based on sparsity of the manipulated data to generate rearranged data, and
process the rearranged data to generate output data.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the processor is configured to add at least one channel configured by zeros to the input data based on the configuration of the hardware.

### Claim 14 (depends on 12)

The apparatus of claim 12, wherein the processor is configured to manipulate the input data based on a number of first channels included in the input data and a number of second channels included in the hardware.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the processor is configured to manipulate the input data based on a value obtained by dividing the number of the second channels by the number of the first channels.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein the processor is configured to add n channels, each being configured by zeros, between the first channels, and
wherein n is a natural number less than or equal to the value obtained by dividing the number of the second channels by the number of the first channels.

### Claim 17 (depends on 12)

The apparatus of claim 12, wherein the processor is configured to shift elements of one or more columns included in the input data according to a specified rule.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein the specified rule includes shifting the elements of the one or more columns by a specified size in a same direction, and
wherein the specified rule is applied periodically to the one or more columns.

### Claim 19 (depends on 12)

The apparatus of claim 12, wherein the processor is configured to shift at least one element included in the manipulated data from a first position of a first column including the at least one element to a second position of a second column.

### Claim 20 (depends on 19)

The apparatus of claim 19, wherein the first position of the first column and the second position of the second column correspond to each other.

### Claim 21 (depends on 19)

The apparatus of claim 19, wherein the first position of the first column and the second position of the second column are different from each other.

### Claim 22

An apparatus, comprising:
a memory; and
a processor configured to execute at least one program stored in the memory to:
generate first data by manipulating input data based on a number of channels of an operator included in the processor;
generate second data by rearranging the first data based on a validity of elements included in the first data; and
perform a convolution operation on the second data to generate output data.

### Claim 23 (depends on 22)

The apparatus of claim 22, wherein generating the second data includes replacing at least one invalid element in the first data with a valid element.

### Claim 24 (depends on 23)

The apparatus of claim 23, wherein the at least one invalid element is a zero and the valid element is a non-zero number.
