Patent ID: 11861505
Assignee: ZHEJIANG LAB
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 2:
3. The method of executing dynamic graph for neural network computation according to claim 1, wherein the step S2 includes the following specific sub-steps:
S21: receiving a distributed operator object, the input and output tensors, and a context object by the operator interpreter, traversing a list of the input tensor, and adding a data pointer of a current input tensor into a pointer list of the data of the input tensor;
S22: deducing metainformation of the operator, the metainformation including device information and a type and a shape of the output tensor, which includes the following specific sub-steps:
S221: declaring a pointer object of tensor data and an object which stores metainformation of the output tensor,
S222: traversing a list of the output tensor, applying for a tensor type pointer, initializing the tensor type pointer to be a tensor object, and updating a value of the object which stores the metainformation of the output tensor in the step S221 at a corresponding position to be metainformation of the tensor object, and
S223: deducing the device information, the shape, and the type of the operator; and
S23: constructing a kernel function of an operator for execution: constructing a kernel function of an operator for execution according to the operator object and the deduced device information.