# US 2021/0334634 A1 · Method and apparatus for implementing an artificial neuron network in an integrated circuit

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

- Number: US 2021/0334634 A1
- Document ID: US20210334634A1
- Status: Published application
- Kind: A1
- Application number: 17/226,598
- Filed: 2021-04-09
- Published: 2021-10-28
- Earliest claimed: 2020-04-23
- Assignees: ST Microelectronics (Rousset) SAS
- Applicants: ST Microelectronics (Rousset) SAS
- Inventors: Laurent Folliot; Pierre Demaj
- Web page: https://patentgrep.com/patent/US20210334634A1

## CPC

- G06N 3/063: using electronic means
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0495: Quantised networks; Sparse networks; Compressed networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

An embodiment method for implementing an artificial neural network in an integrated circuit comprises obtaining an initial digital file representative of a neural network configured according to at least one data representation format, then detecting at least one format for representing at least part of the data of the neural network, then converting at least one detected representation format into a predefined representation format so as to obtain a modified digital file representative of the neural network, and then integrating the modified digital file into an integrated circuit memory.

## Claims

### Claim 1

A method for implementing an artificial neural network in an integrated circuit, the method comprising:
obtaining an initial digital file representative of a neural network configured according to one or more data representation formats;
detecting at least one representation format representing at least part of data of the neural network;
converting the at least one detected representation format into a predefined representation format to obtain a modified digital file representative of the neural network; and
integrating the modified digital file into a memory of the integrated circuit.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the converting the at least one detected representation format of at least part of the data is carried out for at least one layer of the neural network.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the converting the at least one detected representation format of at least part of the data is carried out for each layer of the neural network.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the converting comprises:
adding a first conversion layer at an input of the neural network configured to modify a value of input data that is inputted to the neural network according to the predefined representation format; and
adding a second layer for conversion at an output of the neural network configured to modify a value of output data of a last neural network layer according to a format for representing the output data of the initial digital file.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the neural network comprises a succession of neural network layers, and the data of the neural network include weights assigned to the neural network layers as well as input data and output data that is generated and used by the neural network layers.

### Claim 6 (depends on 5)

The method according to claim 5, wherein the detecting comprises detecting that a weight representation format of the weights is an unsigned format, and the converting comprises a modification of the weight representation format into a signed value as well as a modification of data values representing the weights.

### Claim 7 (depends on 5)

The method according to claim 5, wherein the detecting comprises detecting that a weight representation format of the weights is a signed format, and the converting comprises a modification of the weight representation format into an unsigned value as well as a modification of data values representing the weights.

### Claim 8 (depends on 5)

The method according to claim 5, wherein the detecting comprises detecting that the representation format of the input data and the output data of each layer is an unsigned format, and the converting comprises a modification of a representation of the input data and the output data into signed values.

### Claim 9 (depends on 5)

The method according to claim 5, wherein the detecting comprises detecting that the input data and the output data of each layer are represented in signed values, and the converting comprises a modification of a representation of the input data and the output data into unsigned values.

### Claim 10 (depends on 5)

The method according to claim 5, further comprising:
selecting to execute the neural network by a processor, the weights being represented according to an asymmetric representation format;
setting the predefined representation format of the weights to an unsigned and asymmetric format; and
setting the predefined representation format of the input and output data of each layer to the unsigned and asymmetric format.

### Claim 11 (depends on 5)

The method according to claim 5, further comprising:
selecting to execute the neural network by a processor, the weights being represented according to a symmetric representation format;
setting the predefined representation format of the weights to a signed and symmetric format; and
setting the predefined representation format of the input and output data of each layer to an unsigned and asymmetric format.

### Claim 12 (depends on 5)

The method according to claim 5, further comprising:
selecting to execute the neural network using dedicated electronic circuits;
representing the weights according to a symmetric representation format;
setting the predefined representation format of the weights to a signed and symmetric format; and
setting the predefined representation format of the input and output data of each layer to an asymmetric and unsigned format in response to the dedicated electronic circuits being configured to support an unsigned arithmetic, or to a signed and asymmetric format otherwise.

### Claim 13 (depends on 5)

The method according to claim 5, further comprising:
selecting to at least partly execute the neural network using dedicated electronic circuits;
representing the weights according to an asymmetric representation format;
setting the predefined representation format of the weights to a signed and asymmetric format; and
setting the predefined representation format of the input and output data of each layer to an asymmetric and unsigned format in response to the dedicated electronic circuits being configured to support an unsigned arithmetic, or to the signed and asymmetric format otherwise.

### Claim 14

A computer program product comprising instructions which, when the instructions are executed by a computer, directs the computer to:
detect at least one representation format representing at least part of data of a neural network represented by an initial digital file; and
convert the at least one detected representation format into a predefined representation format to obtain a modified digital file representative of the neural network.

### Claim 15 (depends on 14)

The computer program product according to claim 14, which further directs the computer to integrate the modified digital file into a memory of an integrated circuit.

### Claim 16

A computer-based tool comprising:
an input configured to receive an initial digital file representative of a neural network configured according to one or more data representation formats; and
a processing unit communicatively coupled to the input and configured to:
detect at least one representation format representing at least part of data of the neural network;
convert the at least one detected representation format into a predefined representation format to obtain a modified digital file representative of the neural network; and
integrate the modified digital file into a memory of an integrated circuit.

### Claim 17 (depends on 16)

The computer-based tool according to claim 16, wherein the processing unit configured to convert the at least one detected representation format of at least part of the data is carried out for at least one layer of the neural network.

### Claim 18 (depends on 16)

The computer-based tool according to claim 16, wherein the processing unit configured to convert the at least one detected representation format of at least part of the data is carried out for each layer of the neural network.

### Claim 19 (depends on 16)

The computer-based tool according to claim 16, wherein the processing unit configured to convert comprises the processing unit configured to:
add a first conversion layer at an input of the neural network configured to modify a value of input data that is inputted to the neural network according to the predefined representation format; and
add a second layer for conversion at an output of the neural network configured to modify a value of output data of a last neural network layer according to a format for representing the output data of the initial digital file.

### Claim 20 (depends on 16)

The computer-based tool according to claim 16, wherein the neural network comprises a succession of neural network layers, and the data of the neural network include weights assigned to the neural network layers as well as input data and output data that is generated and used by the neural network layers.
