Node fusion method and device and code generation method and device

A fusion method and node technology, applied in the field of data processing, can solve the problems of small computing granularity and inability to give full play to the computing performance of the hardware platform.
CN111459464AActive Publication Date: 2020-07-28ALIBABA GRP HLDG LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ALIBABA GRP HLDG LTD
Publication Date
2020-07-28

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The embodiment of the invention provides a node fusion method and device and a code generation method and device. The node fusion method comprises: numbering nodes according to a dependency relationship among the nodes in a target calculation graph, connecting the nodes with the dependency relationship in the target calculation graph through edges, enabling each node to correspond to one tensor operation, and enabling each edge to correspond to one tensor; and determining a layer where the node is located according to a numbering result, determining a hierarchical graph corresponding to the target calculation graph, and carrying out layer-by-layer fusion of tensor operation according to the hierarchical graph, therefore, the nodes without dependency among layers can be fused as well, the calculation granularity of the fusion operation obtained after node fusion is enlarged, and the problems that in the prior art, the calculation granularity of the fusion operation obtained after fusionis small, and the calculation performance of an existing hardware platform cannot be brought into full play are solved.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] Embodiments of the present invention relate to the technical field of data processing, and in particular, to a node fusion method, a code generation method, and a device. Background technique

[0002] In recent years, the application of artificial intelligence has exploded. The support of the basic software framework and the support of hardware computing power are the basic driving force for driving the innovation of artificial intelligence application business. The software infrastructure framework of the current mainstream artificial intelligence business can generally abstract the computing business of artificial intelligence into a calculation graph representation, and can perform calculations according to the definition in the calculation graph. Then the calculation graph can be deployed on the hardware platform, so as to be supported by the hardware computing power of the hardware platform itself.

[0003] Usually, due to the small granularity ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More