# US 2022/0012856 A1 · Processing apparatus

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

- Number: US 2022/0012856 A1
- Document ID: US20220012856A1
- Status: Published application
- Kind: A1
- Application number: 17/353,959
- Filed: 2021-06-22
- Published: 2022-01-13
- Earliest claimed: 2020-07-09
- Assignees: Canon Kabushiki Kaisha
- Applicants: Canon Kabushiki Kaisha
- Inventors: Tsewei Chen; Masami Kato; Shiori Wakino
- Web page: https://patentgrep.com/patent/US20220012856A1

## CPC

- G06F 17/153: {Multidimensional correlation or convolution}
- G06T 5/20: using local operators
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/048: Activation functions
- G06N 3/063: using electronic means
- G06T 3/606: by memory addressing or mapping
- G06T 5/10: using non-spatial domain filtering
- G06T 5/92: based on global image properties
- G06V 30/194: References adjustable by an adaptive method, e.g. learning
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

There is provided with a processing apparatus. A data holder holds at least some of data of a plurality of channels in a target layer among a plurality of layers. Each of a plurality of processors performs, in parallel, a product-sum operation using the data of one channel of the target layer and a coefficient corresponding to the target layer. A selector selects whether to perform first processing or second processing on the basis of information specifying processing in the target layer. The first processing includes inputting the data of one channel of the target layer into one of the plurality of processors. The second processing includes inputting the data of one channel of the target layer to the plurality of processors in parallel.

## Claims

### Claim 1

A processing apparatus for performing operations with a convolutional neural network having a plurality of layers, the apparatus comprising:
a data holder configured to hold at least some of data of a plurality of channels in a target layer among the plurality of layers;
a plurality of processors, each configured to perform, in parallel, a product-sum operation using the data of one channel of the target layer and a coefficient corresponding to the target layer; and
a selector configured to select whether to perform first processing or second processing on the basis of information specifying processing in the target layer, the first processing including inputting the data of one channel of the target layer, held by the data holder, into one of the plurality of processors, and the second processing including inputting the data of one channel of the target laver, held by the data holder, to the plurality of processors in parallel.

### Claim 2 (depends on 1)

The processing apparatus according to claim 1,
wherein in the second processing, the data of each one channel among the plurality of channels in the target layer is input to the plurality of processors from the data holder in parallel.

### Claim 3 (depends on 2)

The processing apparatus according to claim 2,
wherein in the second processing, each of the plurality of processors is further configured to output a computation result corresponding to one channel in a next layer after the target layer, using the data of a corresponding channel in the target layer which has been input in sequence.

### Claim 4 (depends on 1)

The processing apparatus according to claim 1, further comprising:
a plurality of data storages, each corresponding to a different one of the plurality of processors,
wherein in the first processing, each of the plurality of data storages is configured to supply the data of the one channel in the target layer to a corresponding one of the processors, and
in the second processing, one data storages among the plurality of data storages is configured to supply the data of the same one channel in the target layer to each of the plurality of processors.

### Claim 5

A processing apparatus for performing operations with a convolutional neural network having a plurality of layers, the apparatus comprising:
a data holder configured to hold at least some of data of a plurality of channels in a target layer among the plurality of layers;
a plurality of processors, each configured to perform, in parallel, a product-sum operation using the data of one channel of the target layer and a coefficient corresponding to the target layer;
an accumulator configured to accumulate processing results of each of the plurality of processors; and
a selector configured to select whether to perform first processing or second processing on the basis of information specifying processing in the target layer, the first processing including outputting processing results of respective processors of the plurality of processors as respective processing results corresponding to respective channels in the next layer after the target layer, and the second processing including outputting a processing result obtained by the accumulator as a processing result corresponding to a single channel in the next layer.

### Claim 6 (depends on 5)

The processing apparatus according to claim 5,
wherein in the second processing, data of a plurality of channels in the target layer, stored in the data holder, is input in parallel to the plurality of processors so that data of one channel is input to a corresponding one of the processors.

### Claim 7 (depends on 5)

The processing apparatus according to claim 5, further comprising:
a plurality of result storages, each corresponding to one of the plurality of processors,
wherein in the first processing, each of the plurality of processors is further configured to output the processing result to a corresponding one of the result storages, and
in the second processing, each of the plurality of processors is further configured to output the processing result to the accumulator, and the accumulator is further configured to output a result of the accumulating to one of the plurality of result storages.

### Claim 8 (depends on 1)

The processing apparatus according to claim 1,
wherein in the first processing, data of a plurality of channels in the target layer, stored in the data holder, is input in parallel to the plurality of processors so that data of one channel is input to a corresponding one of the processors.

### Claim 9 (depends on 1)

The processing apparatus according to claim 1,
wherein in the first processing, each of the plurality of processors is further configured to output a computation result corresponding to one channel in a next layer after the target layer, using the data of one channel in the target layer.

### Claim 10 (depends on 1)

The processing apparatus according to claim 1, further comprising:
a coefficient holder configured to hold at least some of the coefficients used in the product-sum operations in the target layer; and
a supply controller configured to control a supply of data from the data holder and the coefficient holder to the plurality of processors,
wherein each of the plurality of processors is further configured to perform the product-sum operation by calculating a product of one piece of the data and one of the coefficients which have been input and then totaling the calculated products.

### Claim 11 (depends on 1)

The processing apparatus according to claim 1,
wherein the data and the coefficients used in the product-sum operations in the target layer are classified into a plurality of groups, and
the selector is further configured to select whether to perform the first processing or the second processing on the basis of the group of the data and the coefficients used in the product-sum operations.

### Claim 12 (depends on 1)

The processing apparatus according to claim 1,
wherein the coefficients are filter weighting coefficients of a filter for convolution processing, and a size of the filter is configurable for each of the layers.

### Claim 13 (depends on 1)

The processing apparatus according to claim 1,
wherein the coefficients are filter weighting coefficients of a filter for dilated convolution processing.

### Claim 14 (depends on 1)

The processing apparatus according to claim 1,
wherein the data holder is memory,
each of the processors includes a computing core having a multiplier and an adder, and
the processing apparatus includes a chip on which the memory and the computing cores are provided.

### Claim 15 (depends on 14)

The processing apparatus according to claim 14,
wherein the selector includes an address designator configured to designate an address, in the memory, of the data input to the computing cores, the address designator being provided on the chip.

### Claim 16 (depends on 14)

The processing apparatus according to claim 14,
wherein the selector includes a multiplexer configured to select an input to the computing cores from a plurality of sources or to select one output among outputs from the plurality of computing cores, the multiplexer being provided on the chip.

### Claim 17 (depends on 1)

The processing apparatus according to claim 1,
wherein operations with the convolutional neural network are performed for a processing target image, and
the data in the target layer is a feature image obtained in a process of performing the operations with the convolutional neural network.

### Claim 18 (depends on 17)

The processing apparatus according to claim 17, further comprising:
a controller configured to control the plurality of processors to perform the operations with the convolutional neural network on the processing target image; and
an image processor configured to perform image processing on the processing target image on the basis of a processing result obtained by performing the operations with the convolutional neural network on the processing target image.
