# US 2019/0317730 A1 · Neural network engine

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

- Number: US 2019/0317730 A1
- Document ID: US20190317730A1
- Status: Published application
- Kind: A1
- Application number: 15/955,426
- Filed: 2018-04-17
- Published: 2019-10-17
- Earliest claimed: 2018-04-17
- Assignees: FotoNation Limited
- Applicants: FotoNation Limited
- Inventors: Mihai Constantin MUNTEANU
- Web page: https://patentgrep.com/patent/US20190317730A1

## CPC

- G06F 7/4876: {Multiplying}
- G06N 3/063: using electronic means
- G06F 17/15: Correlation function computation {including computation of convolution operations (arithmetic circuits for sum of products per se, e.g. multiply-accumulators G06F7/5443; digital filters, e.g. FIR, IIR, adaptive filters H03H17/00)}
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/048: Activation functions
- G06N 5/046: Forward inferencing; Production systems
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A neural network engine comprises a plurality of floating point multipliers, each having an input connected to an input map value and an input connected to a corresponding kernel value. Pairs of multipliers provide outputs to a tree of nodes, each node of the tree being configured to provide a floating point output corresponding to either: a larger of the inputs of the node; or a sum of the inputs, one output node of the tree providing a first input of an output module, and one of the multipliers providing an output to a second input of the output module. The engine is configured to process either a convolution layer of a neural network, an average pooling layer or a max pooling layer according to the kernel values and whether the nodes and output module are configured to output a larger or a sum of their inputs.

## Claims

### Claim 1

A neural network engine configured to receive at least one M×N window of floating point number values corresponding to a pixel of an input map and a corresponding at least one set of M×N floating point number kernel values for a neural network layer, the neural network engine comprising:
a plurality of at least M×N floating point multipliers, each multiplier having a first operand input configured to be connected to an input map value and a second operand input configured to be connected to a corresponding kernel value;
pairs of multipliers within said M×N multipliers providing respective floating point number outputs to respective input nodes of a tree of nodes, each node of said tree being configured to provide a floating point number output corresponding to either: a larger of the inputs of said node; or a sum of said inputs, one output node of said tree providing a first input of an output module, and one of said M×N multipliers providing an output to a second input of said output module;
wherein when said engine is configured to process a convolution layer of a neural network, each of said kernel values comprises a trained value for said layer, said nodes are configured to sum their inputs and said output module is configured to sum its first and second inputs, to apply an activation function to said sum and to provide an output of said activation function as an output of said output module;
wherein when said engine is configured to process an average pooling layer of a neural network, each of said kernel values comprises a value corresponding to 1/(M×N), said nodes are configured to sum their inputs and said output module is configured to sum its first and second inputs and to provide said sum as said output of said output module; and
wherein when said engine is configured to process a max pooling layer of a neural network, each of said kernel values comprises a value equal to 1, said nodes are configured to output a larger of their inputs and said output module is configured to output a larger of its first and second inputs as said output of said output module.

### Claim 2 (depends on 1)

A neural network engine according to claim 1 wherein said activation function is one of: an identity function, a ReLU function or a PReLU function.

### Claim 3 (depends on 1)

A neural network engine according to claim 1 wherein said activation function is defined by a binary slope parameter and a slope coefficient.

### Claim 4 (depends on 3)

A neural network engine according to claim 3 wherein said activation function, PReLU(x), is defined as follows:
PReLU(x)=x for x>0
PReLU(x)=x/(2{circumflex over ( )}Coef) for x<=0 and PSlope=0
PReLU(x)=−x/(2{circumflex over ( )}Coef) for x<=0 and PSlope=1,
where Coef is said slope coefficient and PSlope is said binary slope parameter.

### Claim 5 (depends on 4)

A neural network engine according to claim 4 wherein said engine is configured to implement said activation function by modifying only the exponent of the input x.

### Claim 6 (depends on 1)

A neural network engine according to claim 1, wherein when said engine is configured to process a peak finding layer of a neural network, each of said kernel values comprises a value equal to 1, said nodes are configured to output a larger of their inputs and said output module is configured to output a larger of its first and second inputs as said output of said output module, and wherein said engine is configured to provide an image value from within said M×N window corresponding to said pixel as an input to said one of said M×N multipliers providing its output to said second input of said output module.

### Claim 7 (depends on 6)

A neural network engine according to claim 6 wherein said output module is configured to provide a second output indicating if said output module second input is greater than said output module first input.

### Claim 8 (depends on 1)

A neural network engine according to claim 1 wherein said engine is further configured to provide a plurality of outputs from penultimate nodes of said tree so that when said engine is configured to process a pooling layer, said engine simultaneously provides a plurality of pooling results for respective sub-windows of said M×N window.
