# US 2023/0274140 A1 · Neural network method and apparatus

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

- Number: US 2023/0274140 A1
- Document ID: US20230274140A1
- Status: Published application
- Kind: A1
- Application number: 18/144,009
- Filed: 2023-05-05
- Published: 2023-08-31
- Earliest claimed: 2019-12-26
- Assignees: Samsung Electronics Co., Ltd.
- Applicants: Samsung Electronics Co., Ltd.
- Inventors: Songyi HAN; Seungwon LEE; Minkyoung CHO
- Web page: https://patentgrep.com/patent/US20230274140A1

## CPC

- G06N 3/045: Combinations of networks
- G06N 3/08: Learning methods
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 20/10: using kernel methods, e.g. support vector machines [SVM]
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A processor-implemented method of performing a convolution operation is provided. The method includes obtaining input feature map data and kernel data, determine the kernel data based on a number of input channels of the input feature map, a number of output channels of an output feature map, and a number of groups of the input feature map data and a number of groups of the kernel data related to the convolution operation, and performing the convolution operation based on the input feature map data and the determined kernel data.

## Claims

### Claim 1

A processor-implemented method of performing a convolution operation, the method comprising:
obtaining input feature map data and kernel data;
manipulating the kernel data by reconfiguring the kernel data based on a number of input channels of the input feature map, a number of groups of the kernel data, and a number of channels of the kernel data related to the convolution operation; and
performing the convolution operation based on the input feature map data and the manipulated kernel data.

### Claim 2 (depends on 1)

The method of claim 1, wherein the number of channels of the kernel data and a number of output channels of an output feature map related to the convolution operation are the same.

### Claim 3 (depends on 1)

The method of claim 1, wherein the manipulating of the kernel data comprises:
generating a default tensor; and
replacing one or more elements of the default tensor with the kernel data.

### Claim 4 (depends on 3)

The method of claim 3, wherein a size of the default tensor is determined based on the number of input channels and a number of output channels.

### Claim 5 (depends on 3)

The method of claim 3, wherein the replacing of the one or more elements of the default tensor with the kernel data comprises sequentially replacing the one or more elements of the default tensor with the kernel data in a first direction.

### Claim 6 (depends on 5)

The method of claim 5, wherein the first direction is a direction corresponding to output channels of an output feature map.

### Claim 7

A processor-implemented method of performing a convolution operation, the method comprising:
obtaining input feature map data and kernel data;
manipulating the kernel data based on a number of input channels of the input feature map, a number of groups of the kernel data, and a number of channels of the kernel data related to the convolution operation; and
performing the convolution operation based on the input feature map data and the manipulated kernel data,
wherein the manipulating of the kernel data comprises:
generating a default tensor; and
replacing one or more elements of the default tensor with the kernel data.

### Claim 8 (depends on 7)

The method of claim 7, wherein the default tensor comprises a tensor comprising zeros.

### Claim 9 (depends on 7)

The method of claim 7, wherein a size of the default tensor is determined based on the number of input channels and a number of output channels of an output feature map.

### Claim 10 (depends on 7)

The method of claim 7, wherein each of the input feature map data and the kernel data comprises data on which a group convolution operation is performed.

### Claim 11 (depends on 7)

The method of claim 7, wherein the replacing of the one or more elements of the default tensor with the kernel data comprises sequentially replacing the one or more elements of the default tensor with the kernel data in a first direction.

### Claim 12 (depends on 11)

The method of claim 11, wherein the first direction is a direction corresponding to an output channel of an output feature map.

### Claim 13 (depends on 1)

A non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform the method of claim 1.

### Claim 14

A neural network apparatus comprising:
one or more processors configured to:
obtain input feature map data and kernel data, manipulate the kernel data based on a number of input channels of the input feature map, a number of groups of the kernel data, and a number of channels of the kernel data related to a convolution operation, and perform the convolution operation based on the input feature map data and the manipulated kernel data.

### Claim 15 (depends on 14)

The apparatus of claim 14, wherein the processor is further configured to generate a default tensor, and replace one or more elements of the default tensor with the kernel data.

### Claim 16 (depends on 15)

The apparatus of claim 15, wherein a size of the default tensor is determined based on the number of input channels and a number of output channels of an output feature map.

### Claim 17 (depends on 15)

The apparatus of claim 15, wherein the processor is further configured to sequentially replace the one or more elements of the default tensor with the kernel data in a first direction.

### Claim 18 (depends on 17)

The apparatus of claim 17, wherein the first direction is a direction corresponding to an output channel of an output feature map.

### Claim 19 (depends on 14)

The apparatus of claim 14, wherein each of the input feature map data and the kernel data comprises data on which a group convolution operation is performed.

### Claim 20 (depends on 14)

The apparatus of claim 14, further comprising a memory storing instructions that, when executed by the one or more processors, configure the one or more processors to perform the obtaining of the input feature map data and kernel data, the manipulating of the kernel data, and the performing of the convolution operation.
