A processor, comprising a processor core, wherein the processor core comprises an instruction dispatching unit and a graph flow unit and at least one general-purpose operation unit that are connected to the instruction dispatching unit, wherein the instruction dispatching unit is configured to: allocate a general-purpose calculation instruction in a decoded to-be-executed instruction to the at least one general-purpose calculation unit, and allocate a graph calculation control instruction in the decoded to-be-executed instruction to the graph flow unit, wherein the general-purpose calculation instruction is used to instruct to execute a general-purpose calculation task, and the graph calculation control instruction is used to instruct to execute a graph calculation task; the at least one general-purpose operation unit is configured to execute the general-purpose calculation instruction; and the graph flow unit is configured to execute the graph calculation control instruction; wherein the processor further comprises a memory unit, the graph flow unit comprises N calculation nodes, the graph calculation control instruction comprises a graph build start instruction, and the graph build start instruction carries a target address in the memory unit; and the graph flow unit is specifically configured to: receive the graph build start instruction, and read graph build block information from the memory unit based on the target address, wherein the graph build block information comprises an operation method of each of the N calculation nodes and connection and sequence information of the N calculation nodes; and wherein the graph calculation control instruction comprises a graph calculation start instruction, and the graph flow unit is specifically configured to: after receiving the graph calculation start instruction, check whether the graph build block information read by the graph flow unit is consistent with an address of a pre-started graph build block, and determine whether the input parameters in the M calculation nodes have been input; and if the graph build block information is consistent with the address of the pre-started graph build block and the input parameters in the M calculation nodes have been input, start to execute the graph calculation task. the instruction dispatching unit is configured to: allocate a general-purpose calculation instruction in a decoded to-be-executed instruction to the at least one general-purpose calculation unit, and allocate a graph calculation control instruction in the decoded to-be-executed instruction to the graph flow unit, wherein the general-purpose calculation instruction is used to instruct to execute a general-purpose calculation task, and the graph calculation control instruction is used to instruct to execute a graph calculation task; the at least one general-purpose operation unit is configured to execute the general-purpose calculation instruction; and the graph flow unit is configured to execute the graph calculation control instruction; wherein the processor further comprises a memory unit, the graph flow unit comprises N calculation nodes, the graph calculation control instruction comprises a graph build start instruction, and the graph build start instruction carries a target address in the memory unit; and the graph flow unit is specifically configured to: receive the graph build start instruction, and read graph build block information from the memory unit based on the target address, wherein the graph build block information comprises an operation method of each of the N calculation nodes and connection and sequence information of the N calculation nodes; and wherein the graph calculation control instruction comprises a graph calculation start instruction, and the graph flow unit is specifically configured to: after receiving the graph calculation start instruction, check whether the graph build block information read by the graph flow unit is consistent with an address of a pre-started graph build block, and determine whether the input parameters in the M calculation nodes have been input; and if the graph build block information is consistent with the address of the pre-started graph build block and the input parameters in the M calculation nodes have been input, start to execute the graph calculation task. after receiving the graph calculation start instruction, check whether the graph build block information read by the graph flow unit is consistent with an address of a pre-started graph build block, and determine whether the input parameters in the M calculation nodes have been input; and if the graph build block information is consistent with the address of the pre-started graph build block and the input parameters in the M calculation nodes have been input, start to execute the graph calculation task.