US 11,720,357 B2
Computing device and method
Yao Zhang, Shanghai (CN); and Bingrui Wang, Shanghai (CN)
Assigned to SHANGHAI CAMBRICON INFORMATION TECHNOLOGY CO., LTD, Shanghai (CN)
Filed by SHANGHAI CAMBRICON INFORMATION TECHNOLOGY CO., LTD, Shanghai (CN)
Filed on Dec. 16, 2019, as Appl. No. 16/714,915.
Application 16/714,915 is a continuation of application No. 16/614,215, previously published as PCT/CN2018/103850, filed on Sep. 3, 2018.
Claims priority of application No. 201810149287.2 (CN), filed on Feb. 13, 2018; and application No. 201810207915.8 (CN), filed on Mar. 14, 2018.
Prior Publication US 2020/0159531 A1, May 21, 2020
Int. Cl. G06F 9/30 (2018.01); G06F 7/491 (2006.01); G06N 20/00 (2019.01); G06F 16/901 (2019.01); G06F 13/28 (2006.01); G06N 3/02 (2006.01); G06N 3/08 (2023.01); G06F 9/38 (2018.01); G06F 12/0871 (2016.01); H03M 7/24 (2006.01); G06N 3/063 (2023.01); G06F 17/16 (2006.01)
CPC G06F 9/30025 (2013.01) [G06F 7/491 (2013.01); G06F 9/3001 (2013.01); G06F 9/30014 (2013.01); G06F 9/30036 (2013.01); G06F 9/30181 (2013.01); G06F 9/3838 (2013.01); G06F 12/0871 (2013.01); G06F 13/28 (2013.01); G06F 16/9027 (2019.01); G06N 3/02 (2013.01); G06N 3/08 (2013.01); G06N 20/00 (2019.01); H03M 7/24 (2013.01); G06F 9/30101 (2013.01); G06F 9/3873 (2013.01); G06F 9/3877 (2013.01); G06F 17/16 (2013.01); G06N 3/063 (2013.01)] 22 Claims
OG exemplary drawing
 
1. A computation device, comprising:
a storage unit,
a controller unit, and
a conversion unit, wherein:
the controller unit is configured to:
obtain a computation instruction;
parse the computation instruction to obtain one or more operation instructions, wherein each of the one or more operation instructions comprises an opcode field and an opcode, the opcode being configured to indicate information of a function of each operation instruction, and the opcode field comprising a first address and a length of first input data, a first address of output data, a decimal point position, a flag bit indicating a data type of the first input data, and an identifier for an operation type of the first input data;
for each of the one or more operation instructions, parse each of the one or more operation instructions to obtain the first address of the first input data, the first address of the output data, the decimal point position, the flag bit indicating the data type of the first input data, and the identifier for the operation type of the first input data;
obtain, for each of the one or more operation instructions, the first input data from the storage unit according to the first address of the first input data, and then transmit the first input data, the decimal point position, the flag bit indicating the data type of the first input data, and the identifier for the operation type of the first input data to the conversion unit; and
transmit the one or more operation instructions to an operation unit; and
the conversion unit is configured to convert, for each of the one or more operation instructions, the first input data into a second input data according to the decimal point position, wherein the flag bit indicates the data type of the first input data, and the identifier for the operation type of the first input data, wherein the second input data is fixed-point data;
wherein the computation device is configured to execute a machine learning computation, and further includes an operation unit, wherein:
the conversion unit is further configured to transmit the second input data of each operation instruction to the operation unit, and
the operation unit is configured to operate the second input data of each operation instruction according to the one or more operation instructions to obtain a computation result of the computation instruction, and store the computation result into a storage space corresponding to the first address of the output data in the storage unit.