Data processing apparatus and method
AssigneeHuawei Technologies Co., Ltd.
InventorsLong Wang, Zongyan Cao, Baicheng Yan, Yibin Wang, Zhe Wang
Life of this patent
Estimating the term…
Abstract
A data processing apparatus and method are provided. The method includes: performing multi-level IR decomposition on original application code, extracting more abundant computation and data flow features to obtain an initial computational graph, and performing graph transformation processing on the initial computational graph to obtain a target computational graph, allowing an application corresponding to original application code to run in different systems and implement performance portability.
Claims20
A data processing apparatus comprising:
- a memory storing executable instructions;
- and
- a processor coupled to the memory and configured to execute the executable instructions to:
- obtain original application code;
- decompose the original application code into a plurality of levels of intermediate representations (IRs), and determine an initial computational graph based on the plurality of levels of IRs;
- perform graph transformation processing on the initial computational graph for at least once to obtain a target computational graph;
- generate target application code based on the target computational graph;
- and
- output the target application code to a target device.
A data processing method applied to a data processing apparatus, the method comprising:
- obtaining original application code;
- decomposing the original application code into a plurality of levels of intermediate representations (IRs, and determining an initial computational graph based on the plurality of levels of IRs;
- performing graph transformation processing on the initial computational graph for at least once to obtain a target computational graph;
- generating target application code based on the target computational graph;
- and
- outputting the target application code to a target device.
Dependencies are inferred from the claim text.