# US 2022/0284272 A1 · Dynamic design method to form acceleration units of neural networks

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

- Number: US 2022/0284272 A1
- Document ID: US20220284272A1
- Status: Published application
- Kind: A1
- Application number: 17/363,141
- Filed: 2021-06-30
- Published: 2022-09-08
- Earliest claimed: 2021-03-05
- Assignees: National Taiwan University of Science and Technology
- Applicants: National Taiwan University of Science and Technology
- Inventors: Shun-Feng SU; Meng-Wei CHANG
- Web page: https://patentgrep.com/patent/US20220284272A1

## CPC

- G06N 3/063: using electronic means
- G06F 7/523: Multiplying only
- G06F 7/535: Dividing only
- G06F 9/5027: {the resource being a machine, e.g. CPUs, Servers, Terminals}
- G06F 15/7867: {with reconfigurable architecture}
- G06F 17/16: Matrix or vector computation {, e.g. matrix-matrix or matrix-vector multiplication, matrix factorization (matrix transposition G06F7/78)}
- G06F 30/327: Logic synthesis; Behaviour synthesis, e.g. mapping logic, HDL to netlist, high-level language to RTL or netlist
- G06F 30/34: for reconfigurable circuits, e.g. field programmable gate arrays [FPGA] or programmable logic devices [PLD]
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method is disclosed to dynamically design acceleration units of neural networks. The method comprises steps of generating plural circuit description files through a neural network model; reading a model weight of the neural network model to determine a model data format of the neural network model; selecting one circuit description file from the plural circuit description files according to the model data format, so that the chip is reconfigured according to the selected circuit description file to form an acceleration unit adapted to the model data format. The acceleration unit is suitable for running a data segmentation algorithm, which may accelerate the inference process of the neural network model. Through this method the chip may be dynamically reconfigured into an efficient acceleration unit for the different model data format, thereby speeding up the inference process of the neural network model.

## Claims

### Claim 1

A dynamic design method to form acceleration units of neural networks, the method comprising steps of:
providing a neural network model and a chip, wherein the neural network model comprises a model weight;
generating plural circuit description files through the neural network model;
reading the model weight of the neural network model to determine a model data format of the neural network model;
selecting one circuit description file from the plural circuit description files according to the model data format; and
reconfiguring the chip to form an acceleration unit adapted to the model data format according to the one circuit description file, wherein the is acceleration unit is suitable for running a data segmentation algorithm.

### Claim 2 (depends on 1)

The method of claim 1, wherein each of the plural circuit description files comprises a data format corresponding to the acceleration unit, and a circuit logic related to the data segmentation algorithm.

### Claim 3 (depends on 2)

The method of claim 2, wherein the model data format and the data format corresponding to the acceleration unit are respectively selected from a group consisting of int 8, int 16, int 32, float 8, float 16, float 32 and BFloat16.

### Claim 4 (depends on 2)

The method of claim 2, wherein reconfiguring the chip comprises steps of:
providing a basic platform circuit;
configuring a file system related to the model data format;
synthesizing a core circuit according to the circuit logic related to the data segmentation algorithm; and
transplanting the file system and the core circuit to the basic platform circuit to form the acceleration unit.

### Claim 5 (depends on 1)

The method of claim 1, wherein the data segmentation algorithm comprises:
providing a first matrix and a second matrix;
dividing the first matrix into a plurality of first data blocks, and dividing the second matrix into a plurality of second data blocks; and
performing a matrix multiplication operation on the first data blocks and the second data blocks through a plurality of processing elements.

### Claim 6 (depends on 1)

The method of claim 1, wherein the acceleration unit comprises a heterogeneous multi-core architecture.

### Claim 7 (depends on 6)

The method of claim 6, wherein the heterogeneous multi-core architecture comprises a hybrid dynamic circuit including a processing system and a programmable logic.
