US 10,891,134 B2
Method and apparatus for executing instruction for artificial intelligence chip
Yong Wang, Beijing (CN); Jiaxin Shi, Beijing (CN); Rong Chen, Beijing (CN); and Jinchen Han, Beijing (CN)
Assigned to BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD., Beijing (CN)
Filed by BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD., Beijing (CN)
Filed on Jul. 9, 2019, as Appl. No. 16/505,913.
Claims priority of application No. 2018 1 0907325 (CN), filed on Aug. 10, 2018.
Prior Publication US 2020/0050457 A1, Feb. 13, 2020
Int. Cl. G06F 9/30 (2018.01); G06F 9/38 (2018.01); G06N 5/02 (2006.01)
CPC G06F 9/3838 (2013.01) [G06N 5/02 (2013.01)] 17 Claims
OG exemplary drawing
 
1. A method for executing an instruction for an artificial intelligence chip, the artificial intelligence chip comprising at least one general-purpose execution component and at least one special-purpose execution component, the method comprising:
receiving descriptive information for describing a neural network model sent by a central processing unit, the descriptive information including at least one operation instruction;
analyzing the descriptive information to acquire the at least one operation instruction; and
determining, for an operation instruction of the at least one operation instruction, a special-purpose execution component executing the operation instruction, and locking the determined special-purpose execution component; sending the operation instruction to the determined special-purpose execution component; and unlocking the determined special-purpose execution component in response to receiving a notification for instructing the operation instruction being completely executed.