Patent ID: 11960866
Assignee: HUAWEI TECHNOLOGIES CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 1:
2. The method of claim 1, wherein the applying the recursive trace algorithm comprises:
using an output of the TensorFlow graph as a current node;
responsive to determining that the current node is not a terminal node and the current node is not a traversed node, adding the current node to a traversed data structure indicating that the current node has been traversed;
responsive to determining that the current node is included within one of the control flows of a plurality of control flows within the extracted control flows data structure:
applying the recursive trace algorithm to inputs of a control flow that contain the current node; and
adding the control flow that contains the current node to a traced data structure;

responsive to determining that the current node is not included within one of the control flows of the plurality of control flows within the extracted control flows data structure:
applying the recursive trace algorithm to an input of the current node; and
adding the current node to the traced data structure; and

outputting the traced data structure, wherein the traced data structure is a list containing TensorFlow graph nodes and common intermediate representation control flow objects.