# US 2022/0284263 A1 · Neural network operation apparatus and method

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

- Number: US 2022/0284263 A1
- Document ID: US20220284263A1
- Status: Published application
- Kind: A1
- Application number: 17/378,867
- Filed: 2021-07-19
- Published: 2022-09-08
- Earliest claimed: 2021-03-04
- Assignees: Samsung Electronics Co., Ltd.; Seoul National University R&Db Foundation
- Applicants: Samsung Electronics Co., Ltd.; Seoul National University R&Db Foundation
- Inventors: Hanwoong JUNG; Soonhoi HA; Donghyun KANG; Duseok KANG
- Web page: https://patentgrep.com/patent/US20220284263A1

## CPC

- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/063: using electronic means
- G06N 3/08: Learning methods
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A neural network operation apparatus and method is provided. The neural network operation apparatus includes a memory configured to store data for a neural network operation, and a processor configured to validate the data based on a determination that the neural network operation should be performed on the data, obtain a real memory address to perform the neural network operation based on a result of the validating and a virtual tensor address of the data, and perform the neural network operation based on the real memory address.

## Claims

### Claim 1

A neural network operation apparatus, comprising:
a memory, configured to store data for a neural network operation; and
one or more processors, configured to:
validate the data based on a determination that the neural network operation should be performed on the data;
obtain a real memory address to perform the neural network operation based on a result of the validating and a virtual tensor address of the data, and
perform the neural network operation based on the real memory address.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the one or more processors are further configured to validate the data based on the virtual tensor address and a stride of the neural network operation.

### Claim 3 (depends on 2)

The apparatus of claim 2, wherein the one or more processors are further configured to validate the data based on a modulo operation between the virtual tensor address and the stride.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the one or more processors are further configured to obtain the real memory address based on one of the virtual tensor address, a stride of the neural network operation, and a kernel size of the neural network operation.

### Claim 5 (depends on 4)

The apparatus of claim 4, wherein the one or more processors are further configured to obtain the real memory address based on a value of a floor function of a value obtained by dividing the virtual tensor address by the stride or the kernel size.

### Claim 6 (depends on 1)

The apparatus of claim 1, wherein the neural network operation comprises one of an upsampling operation and a transposed convolution operation.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the data comprises at least one of a feature map, a width of the feature map, a height of the feature map, a number of channels of the feature map, a size of a kernel of the neural network operation, and a stride of the neural network operation.

### Claim 8 (depends on 1)

The apparatus of claim 1, further comprising:
an operator, configured to perform the neural network operation,
wherein the one or more processors are further configured to perform the neural network operation by inputting data corresponding to the real memory address to the operator.

### Claim 9 (depends on 8)

The apparatus of claim 8, wherein the operator comprises at least one multiply accumulator (MAC) operator.

### Claim 10

A neural network operation apparatus, comprising:
a memory, configured to store data for a neural network operation; and
one or more processors configured to:
obtain a real memory address to store a result of the neural network operation based on a virtual tensor address of the data,
perform the neural network operation by inputting input data for the neural network operation to an operator, and
transmit an output of the operator to the real memory address.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the one or more processors are further configured to obtain the real memory address based on the virtual tensor address, a channel index of the input data, a number of channels of the input data, and a parameter of the neural network operation.

### Claim 12 (depends on 11)

The apparatus of claim 11, wherein the parameter of the neural network operation is determined based on a ratio of a size of a channel included in the input data, and a size of a channel included in an output of the neural network operation.

### Claim 13 (depends on 11)

The apparatus of claim 11, wherein the neural network operation comprises a convolution operation and an activation operation.

### Claim 14 (depends on 11)

The apparatus of claim 11, wherein the one or more processors are further configured to obtain the real memory address based on a value of a floor function using the channel index, the parameter, and the number of channels.

### Claim 15 (depends on 11)

The apparatus of claim 11, wherein the one or more processors are further configured to obtain the real memory address based on a modulo operation between the parameter and a value of a floor function using the channel index and the number of channels.

### Claim 16 (depends on 11)

The apparatus of claim 11, wherein the one or more processors are further configured to obtain the real memory address based on a modulo operation between the channel index and the number of channels.

### Claim 17

A neural network operation method, comprising:
receiving data for a neural network operation;
validating the data based on a determination that the neural network operation should be performed on the data;
obtaining a real memory address to perform the neural network operation based on a result of the validating and a virtual tensor address of the data; and
performing the neural network operation based on the real memory address.

### Claim 18 (depends on 17)

The neural network operation method of claim 17, wherein the validating of the data comprises validating the data based on the virtual tensor address and a stride of the neural network operation.

### Claim 19 (depends on 17)

The neural network operation method of claim 17, wherein the obtaining of the real memory comprises obtaining the real memory address based on one of the virtual tensor address, a stride of the neural network operation, and a kernel size of the neural network operation.

### Claim 20 (depends on 17)

The neural network operation method of claim 17, wherein the performing of the neural network operation comprises performing one of an upsampling operation and a transposed convolution operation based on the real memory address.
