Patent ID: 11966583
Assignee: CAMBRICON TECHNOLOGIES CORPORATION LIMITED
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 0:
1. A data pre-processing method, comprising:
obtaining an available storage capacity of a first memory and a target operation;
determining, according to the target operation and the available storage capacity of the first memory, target input data corresponding to the target operation;
determining, according to the target operation and the target input data, target output data of the target operation; and
storing, if an intermediate computation result output by a current operation in the target operation is required as the input data of another operation in the target operation, the intermediate computation result of the current operation into the first memory;
wherein the target operation includes one or more operations, each operation represents an operation layer in a neural network, the target operation is obtained by fusing a plurality of operation layers having a data dependence relationship in a depth direction of the neural network; and
wherein a number of operation layers in the plurality of operation layers to be fused in the target operation is determined based on the available storage capacity of the first memory and on a requirement that an intermediate computation result output by any operation in the target operation can be stored in the first memory.