CPC G06F 9/3836 (2013.01) [G06F 9/32 (2013.01); G06N 3/063 (2013.01)] | 15 Claims |
1. An instruction execution method, comprising:
acquiring an exceptional signal generated by a neural network processor during an operation by means of detecting multiple types of errors encountered by the neural network processor through multiple types of error detectors inside the neural network processor;
according to the exceptional signal, determining an exception processing instruction corresponding to the exceptional signal;
determining a first instruction queue to be executed by the neural network processor;
generating a second instruction queue according to the exception processing instruction and the first instruction queue; and
executing the second instruction queue,
wherein generating the second instruction queue according to the exception processing instruction and the first instruction queue comprises:
determining processing priority corresponding to the exception processing instruction, according to the exception processing instruction; and
according to the processing priority, inserting the exception processing instruction into the first instruction queue to generate the second instruction queue.
|