AI calculation graph sorting method and device, equipment and storage medium
A sorting method and computing graph technology, applied in the direction of multi-program device, computing, program control design, etc., can solve the problems of low delay, high utilization rate, data flow architecture and instruction set architecture are not the same architecture, etc., to achieve improvement The effect of chip performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] Figure 1AIt is a schematic flowchart of the AI calculation graph sorting method provided by Embodiment 1 of the present invention. This embodiment is applicable to the node sorting of the deep learning model calculation graph based on the data flow architecture. This method can be implemented by the sorting device of the AI calculation graph, and It can be realized by means of hardware or software. Such as Figure 1A As shown, the AI calculation graph sorting method provided by Embodiment 1 of the present invention includes:
[0057] S110. Obtain a computing graph based on the data flow architecture, where the computing graph includes multiple computing nodes.
[0058] Specifically, the calculation graph based on the data flow architecture refers to the calculation graph of the deep learning model developed based on the data flow architecture. Computational graph is a kind of computing process with Directed Acyclic Graph (DAG) as data structure, which includes m...
Embodiment 2
[0070] Figure 2A It is a schematic flowchart of the method for sorting AI calculation graphs provided by Embodiment 2 of the present invention. This embodiment is a further refinement of the foregoing embodiments. Such as Figure 2A As shown, the AI calculation graph sorting method provided by Embodiment 2 of the present invention includes:
[0071] S210. Acquire a computing graph based on the data flow architecture, where the computing graph includes multiple computing nodes.
[0072] S220. Perform topological sorting on the computation graph to obtain a first arrangement order of the computation graph.
[0073] S230. Determine multiple branch start nodes and multiple branches corresponding to each branch start node.
[0074] Specifically, the calculation graph of the deep learning model is a directed acyclic graph, usually with a large number of calculation nodes and a complex structure, so there are also multiple branch start nodes, and each branch is based on its cor...
Embodiment 3
[0107] image 3 A schematic structural diagram of the device for sorting AI calculation graphs provided by Embodiment 3 of the present invention. This embodiment is applicable to the sorting of nodes in the calculation graphs of deep learning models based on data flow architecture. The device can implement the AI provided by any embodiment of the present invention. The sorting method of the calculation graph has the corresponding functional structure and beneficial effects of the realization method. For the content not described in detail in this embodiment, please refer to the description of any method embodiment of the present invention.
[0108] Such as image 3 As shown, the AI calculation graph sorting device provided by Embodiment 3 of the present invention includes: a calculation graph acquisition module 310, a topological sorting module 320, a branch sorting module 330, and a target sorting order determination module 340, wherein:
[0109] The computing graph acqu...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com