# US 2025/0156109 A1 · Chip, method for flexibly accessing data, device, and medium

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

- Number: US 2025/0156109 A1
- Document ID: US20250156109A1
- Status: Published application
- Kind: A1
- Application number: 19/021,790
- Filed: 2025-01-15
- Published: 2025-05-15
- Earliest claimed: 2022-07-15
- Assignees: Beijing Youzhuju Network Technology Co., Ltd.
- Applicants: Beijing Youzhuju Network Technology Co., Ltd.
- Inventors: Yunfeng SHI; Jun ZHOU; Jian WANG
- Web page: https://patentgrep.com/patent/US20250156109A1

## CPC

- G06F 3/0655: {Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices}
- G06F 12/0207: {with multidimensional access, e.g. row/column, matrix}
- G06F 3/0604: {Improving or facilitating administration, e.g. storage management}
- G06F 3/0679: {Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]}
- G06F 15/7839: {with memory}
- G06N 3/02: Neural networks
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/044: Recurrent networks, e.g. Hopfield networks
- G06N 3/045: Combinations of networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/048: Activation functions
- G06N 3/06: Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
- G06N 3/063: using electronic means
- G06N 3/08: Learning methods
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A processor chip, a method for flexibly accessing data in the processor chip, an electronic device, and a non-transitory storage medium are provided. The chip includes: a memory, configured to store read-in tensor data from outside the processor chip; a storage control unit, configured to control reading elements from the memory according to the tensor operation of the operator to send the elements to a computing unit, where the storage control unit includes an address computing module, and the address computing module computes addresses in the memory in one-layer read loop or multi-layer read loop nest according to the parameter configured that is received by the interface, so as to read the elements from computed addresses and send the elements to the computing unit; and the computing unit, configured to perform the tensor operation of the operator by using the elements received.

## Claims

### Claim 1

A processor chip for flexibly accessing data, comprising:
a memory, configured to store read-in tensor data from outside the processor chip, the read-in tensor data comprising a plurality of elements for performing a tensor operation of an operator comprised in computation;
a storage control unit, configured to control reading elements from the memory according to the tensor operation of the operator to send the elements to a computing unit, wherein the storage control unit comprises an address computing module, the address computing module has an interface for receiving a parameter that is configured by software, and the address computing module computes addresses in the memory in one-layer read loop or multi-layer read loop nest according to the parameter configured that is received by the interface, so as to read the elements from computed addresses and send the elements to the computing unit; and
the computing unit, configured to perform the tensor operation of the operator by using the elements received.

### Claim 2 (depends on 1)

The processor chip according to claim 1,
wherein the parameter that is configured by software comprises: a value representing a number of the elements to be read from the read-in tensor data in the one-layer read loop, and a value representing a stride between respective steps in the one-layer read loop; or
the parameter that is configured by software comprises: a value representing a number of steps of reading in respective layers of read loops, and a value representing a stride between respective steps in respective layers of the read loops, wherein the respective layers of the read loops are performed from an outer layer to an inner layer in a nested manner.

### Claim 3 (depends on 1)

The processor chip according to claim 1, wherein the parameter that is configured by software comprises: a value representing a number of addresses spaced between an address of a first element read in the one-layer read loop and an initial address of an input tensor in the memory.

### Claim 4 (depends on 1)

The processor chip according to claim 1, wherein the parameter that is configured by software comprises a condition specific to the parameter, and the parameter has different values when the condition is met and when the condition is not met.

### Claim 5 (depends on 4)

The processor chip according to claim 4, wherein the parameter is a value representing a number of steps of reading in a specific layer of read loops, and the condition is which step the reading proceeds to in another layer of read loops outer than the specific layer.

### Claim 6 (depends on 2)

The processor chip according to claim 2, wherein the address computing module computes an address to be read currently according to a currently proceeded step in the one-layer read loop or the respective layers of the read loops as well as respective strides of the one-layer read loop or the respective layers of the read loops.

### Claim 7 (depends on 1)

The processor chip according to claim 1, wherein the parameter that is configured by software indicates that the tensor operation of the operator is replaced by a mode of reading the elements from the addresses in the memory according to the tensor operation of the operator.

### Claim 8 (depends on 7)

The processor chip according to claim 7, wherein the tensor operation is tensor manipulation without changing numerical values in an input tensor, and the address computing module computes an address in the memory to be read each time in the one-layer read loop or the multi-layer read loop nest according to the parameter configured that is received through the interface, so that the tensor manipulation is replaced by reading.

### Claim 9 (depends on 8)

The processor chip according to claim 8, wherein the tensor operation comprises at least one from a group consisting of: operation of transpose operator, operation of reshape operator, operation of broadcast operator, operation of gatherer operator, operation of reverse operator, operation of concat operator, and operation of cast operator, wherein the memory is divided into a plurality of banks for respectively storing data that is capable of being accessed in parallel, and the storage control unit comprises a crossbar having a read function and a write function that are separated, so as to access the data stored in the plurality of banks of the memory in parallel.

### Claim 10

A method for flexibly accessing data in a processor chip, comprising:
storing, by a memory in the processor chip, read-in tensor data from outside the processor chip, the read-in tensor data comprising a plurality of elements for performing a tensor operation of an operator comprised in computation;
controlling reading elements from the memory according to the tensor operation of the operator to send the elements to a computing unit, comprising: computing addresses in the memory in one-layer read loop or multi-layer read loop nest according to a parameter that is configured by software and is received, so as to read the elements from computed addresses and send the elements to the computing unit in the processor chip; and
performing, by the computing unit, the tensor operation of the operator by using the elements received.

### Claim 11 (depends on 10)

The method according to claim 10,
wherein the parameter that is configured by software comprises: a value representing a number of the elements to be read from the read-in tensor data in the one-layer read loop, and a value representing a stride between respective steps in the one-layer read loop; or
the parameter that is configured by software comprises: a value representing a number of steps of reading in respective layers of read loops, and a value representing a stride between respective steps in respective layers of the read loops, wherein the respective layers of the read loops are performed from an outer layer to an inner layer in a nested manner.

### Claim 12 (depends on 10)

The method according to claim 10, wherein the parameter that is configured by software comprises: a value representing a number of addresses spaced between an address of a first element read in the one-layer read loop and an initial address of an input tensor in the memory.

### Claim 13 (depends on 10)

The method according to claim 10, wherein the parameter that is configured by software comprises a condition specific to the parameter, and the parameter has different values when the condition is met and when the condition is not met.

### Claim 14 (depends on 13)

The method according to claim 13, wherein the parameter is a value representing a number of steps of reading in a specific layer of read loops, and the condition is which step the reading proceeds to in another layer of read loops outer than the specific layer.

### Claim 15 (depends on 11)

The method according to claim 11, further comprising:
computing an address to be read currently according to a currently proceeded step in the one-layer read loop or the respective layers of the read loops as well as respective strides of the one-layer read loop or the respective layers of the read loops.

### Claim 16 (depends on 10)

The method according to claim 10, wherein the parameter that is configured by software indicates that the tensor operation of the operator is replaced by a mode of reading the elements from the addresses in the memory according to the tensor operation of the operator.

### Claim 17 (depends on 16)

The method according to claim 16, wherein the tensor operation is tensor manipulation without changing numerical values in an input tensor, and an address in the memory to be read each time is computed in the one-layer read loop or the multi-layer read loop nest according to the parameter configured that is received through the interface, so that the tensor manipulation is replaced by reading.

### Claim 18 (depends on 17)

The method according to claim 17, wherein the tensor operation comprises at least one from a group consisting of: operation of transpose operator, operation of reshape operator, operation of broadcast operator, operation of gatherer operator, operation of reverse operator, operation of concat operator, and operation of cast operator, wherein the memory is divided into a plurality of banks for respectively storing data that is capable of being accessed in parallel, and the method further comprises accessing the data stored in the plurality of banks of the memory in parallel through a crossbar having a read function and a write function that are separated.

### Claim 19 (depends on 10)

An electronic device, comprising:
a memory, configured to store instructions; and
a processor, configured to read the instructions from the memory and execute the method according to claim 10.

### Claim 20 (depends on 10)

A non-transitory storage medium, wherein instructions are stored on the non-transitory storage medium, and
the instructions, when read by a processor, cause the processor to execute the method according to claim 10.
