Data processing method and apparatus, and related product
US-2021334105-A1 · Oct 28, 2021 · US
US11836491B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-11836491-B2 |
| Application number | US-202117242209-A |
| Country | US |
| Kind code | B2 |
| Filing date | Apr 27, 2021 |
| Priority date | Apr 4, 2019 |
| Publication date | Dec 5, 2023 |
| Grant date | Dec 5, 2023 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
The present disclosure provides a data processing method and an apparatus and a related product. The products include a control module including an instruction caching unit, an instruction processing unit, and a storage queue unit. The instruction caching unit is configured to store computation instructions associated with an artificial neural network operation; the instruction processing unit is configured to parse the computation instructions to obtain a plurality of operation instructions; and the storage queue unit is configured to store an instruction queue, where the instruction queue includes a plurality of operation instructions or computation instructions to be executed in the sequence of the queue. By adopting the above-mentioned method, the present disclosure can improve the operation efficiency of related products when performing operations of a neural network model.
Opening claim text (preview).
What is claimed is: 1. A data processing apparatus, comprising a controller and a processing circuit, wherein the controller is configured to: determine that an operand of a first processing instruction includes an identifier of a descriptor, wherein the descriptor indicates a shape of tensor data on which the first processing instruction is to be executed; obtain content of the descriptor from a descriptor storage space according to the identifier of the descriptor, wherein the content of the descriptor includes a shape vector comprising N shape parameters to indicate that the tensor data has N dimensions and each shape parameter indicates a feature of the tensor data in a corresponding dimension, where N is a positive integer; and send the content of the descriptor and the first processing instruction to the processing circuit, wherein the processing circuit is configured to obtain the tensor data based on a storage size of the tensor data determined based on the shape vector in the content of the descriptor and execute the first processing instruction on the tensor data. 2. The data processing apparatus of claim 1 , wherein to execute the first processing instruction on the tensor data obtained according to the content of the descriptor, the processing circuit is further configured to: determine a data address of the tensor data in a data storage space corresponding to the operand of the first processing instruction according to the content of the descriptor; obtain the tensor data from the data storage space based on the data address and the storage size of the tensor data; and execute data processing on the tensor data corresponding to the first processing. 3. The data processing apparatus of claim 2 , wherein the operand further includes a data description position for the descriptor, wherein the processing circuit is configured to determine the data address of the tensor data corresponding to the operand in the data storage space according to the content of the descriptor and the data description position. 4. The data processing apparatus of claim 2 , wherein the content of the descriptor further includes at least one address parameter indicating the data address of the tensor data. 5. The data processing apparatus of claim 4 , wherein the address parameter includes a base address of a datum point of the descriptor in the data storage space of the tensor data, wherein the shape parameter includes at least one of: a size of the data storage space in at least one of the N dimensions, a size of a storage area of the tensor data in at least one of the N dimensions, an offset of the storage area in at least one of the N dimensions, or a position of at least two vertices at diagonal positions in the N dimensions relative to the datum point. 6. The data processing apparatus of claim 3 , wherein the content of the descriptor further includes a mapping relationship between the data description position of the tensor data and the data address of the tensor data. 7. The data processing apparatus of claim 5 , wherein the base address includes a start address of the data storage space. 8. The data processing apparatus of claim 1 , wherein the first processing instruction includes a data access instruction, and the operand includes source data and target data, wherein the controller is configured to: obtain, when the source data includes an identifier of a first descriptor and the target data includes an identifier of a second descriptor, content of the first descriptor and content of the second descriptor from the descriptor storage space respectively; and send the content of the first descriptor, the content of the second descriptor, and the first processing instruction to the processing circuit, wherein the processing circuit is configured to: obtain a first data address of the source data and a second data address of the target data respectively according to the content of the first descriptor and the content of the second descriptor; and read data from the first data address and write the data to the second data address. 9. The data processing apparatus of claim 8 , wherein the controller is configured to: obtain, when the source data includes an identifier of a third descriptor, content of the third descriptor from the descriptor storage space; and send the content of the third descriptor and the first processing instruction to the processing circuit, wherein the processing circuit is configured to: obtain a third data address of the source data according to the content of the third descriptor; and read data from the third data address and write the data to the second data address of the target data. 10. The data processing apparatus of claim 9 , wherein the controller is configured to: obtain, when the target data includes an identifier of a fourth descriptor, content of a fourth descriptor from the descriptor storage space; and send the content of the fourth descriptor and the first processing instruction to the processing circuit, where the processing circuit is configured to: obtain a fourth data address of the target data according to the content of the fourth descriptor, and read data from the first data address of the source data and write the data to the fourth data address. 11. The data processing apparatus of claim 2 , wherein the first processing instruction includes an operation instruction, wherein the processing circuit is configured to read data from the data address and execute an operation corresponding to the operation instruction. 12. The data processing apparatus of claim 1 , wherein the controller is further configured to: decode the received first processing instruction to obtain a decoded first processing instruction, wherein the decoded first processing instruction includes an operation code and one or more operands, and the operation code is used to indicate a processing type corresponding to the first processing instruction. 13. The data processing apparatus of claim 2 , wherein the descriptor storage space is a storage space in an internal memory of the controller, and the data storage space is a storage space in an internal memory of the controller or a storage space in an external memory connected to the controller. 14. A data processing method performed by a processor, comprising: determining, by a controller, that an operand of a first processing instruction includes an identifier of a descriptor, wherein the descriptor indicates a shape of tensor data on which the first processing instruction is to be executed; obtaining, by the controller, content of the descriptor from a descriptor storage space according to the identifier of the descriptor, wherein the content of the descriptor includes a shape vector comprising N shape parameters to indicate that the tensor data has N dimensions and each shape parameter indicates a feature of the tensor data in a corresponding dimension, where N is a positive integer; sending the content of the descriptor by the controller to a processing circuit; determining, by the processing circuit, a data address of the tensor data corresponding to the operand of the first processing instruction in a data storage space according to the content of the descriptor; determining, by the processing circuit, a storage size of the tensor data based on the shape vector in the content of the descriptor; and according to the data address and the storage size of the tensor data, executing, by the processing circuit, data processing corresponding to the first processing instruction. 15. The data processing method of claim 14 , t
to perform operations on memory · CPC title
Decoding the operand specifier, e.g. specifier format · CPC title
according to data descriptor, e.g. dynamic data typing · CPC title
Monitoring arrangements specially adapted to the computing system or computing system component being monitored · CPC title
Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available (error or fault processing without redundancy G06F11/0703; error detection or correction by redundancy in data representation G06F11/08; error detection or correction of the data by redundancy in operations G06F11/14; error detection or correction by redundancy in hardware G06F11/16) · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.