| CPC G06N 3/082 (2013.01) [G06F 9/485 (2013.01); G06F 9/4881 (2013.01); G06N 3/063 (2013.01)] | 18 Claims |

|
10. A task processing device based on a neural network, comprising: a multi-core processor and a memory storing at least one instruction therein;
wherein the instruction, when executed by the multi-core processor, causes the device to execute a task processing method comprising:
acquiring input data, wherein the input data is intended to trigger thread tasks, and is source input data or cache exchange data;
generating processing result data by scheduling at least two corresponding module threads in parallel based on at least two triggered thread tasks to process the input data, wherein the at least two module threads respectively correspond to at least two network modules in the neural network;
outputting the processing result data to a cache, wherein the processing result data is used as the cache exchange data of module threads except the at least two module threads, or outputting the processing result data, wherein the processing result data is used as a processing result of the source input data;
wherein the at least two module threads at least comprise a start module thread and an end module thread;
wherein generating the processing result data by scheduling at least two corresponding module threads in parallel based on at least two triggered thread tasks to process the input data comprises:
scheduling the start module thread based on the triggered thread task to process input data to the start module thread; and
scheduling the end module thread based on the triggered thread task to process input data to the end module thread; and
executing tasks of the scheduled start module thread on a first core of the multi-core processor and executing tasks of the scheduled end module thread on a different core of the multi-core processor.
|