Vector and matrix computing device
AssigneeCambricon Technologies Corporation Limited
InventorsTianshi Chen, Xiao Zhang, Shaoli Liu, Yunji Chen
Life of this patent
Estimating the term…
Abstract
A computing device and related products are provided. The computing device is configured to perform machine learning calculations. The computing device includes an operation unit, a controller unit, and a storage unit. The storage unit includes a data input/output (I/O) unit, a register, and a cache. Technical solution provided by the present disclosure has advantages of fast calculation speed and energy saving.
Claims19
A computing device, configured to perform machine learning calculations, comprising:
- a storage unit that includes a data input/output (I/O) unit and one or any combination of a register and a cache;
- a data I/O unit configured to acquire data, a machine learning model, and calculation instructions, wherein the storage unit is configured to store the machine learning model and the data;
- and
- a controller unit configured to extract a first calculation instruction from the storage unit, to obtain an operation code and an operation field of the first calculation instruction by parsing the first calculation instruction, to extract data corresponding to the operation field, and to send the operation code and the data corresponding to the operation field to the operation unit;
- wherein the operation field includes at least a register number that identifies the register or an immediate value;
- wherein the operation code is an operation code of a matrix calculation instruction;
- and
- wherein the operation unit is configured to obtain a result of the first calculation instruction by performing an operation corresponding to the operation code on the data corresponding to the operation field, according to the operation code.
A machine learning computing method, applicable to a computing device, the computing device comprising an operation unit, a controller unit, and a storage unit;
- wherein the storage unit comprises a data input/output (I/O) unit and one or any combination of a register and a cache;
- acquiring, by the data I/O unit, data, a machine learning model, and calculation instructions, wherein the storage unit is configured to store the machine learning model and the data;
- extracting, by the controller unit, a first calculation instruction from the storage unit, obtaining, by the controller unit, an operation code and an operation field of the first calculation instruction by parsing the first calculation instruction, extracting, by the controller unit, data corresponding to the operation field, and sending, by the controller unit, the operation code and the data corresponding to the operation field to the operation unit;
- wherein the operation field includes at least a register number that identifies the register or an immediate value;
- wherein the operation code is an operation code of a matrix calculation instruction;
- and
- obtaining, by the operation unit, a result of the first calculation instruction by performing an operation corresponding to the operation code on the data corresponding to the operation field, according to the operation code.
Dependencies are inferred from the claim text.