Graph Build Procedure
This section describes several typical service scenarios of graph build and the interaction process in each scenario.
A network model is usually a graph composed of tensors and nodes (or operators). Notes:
- A tensor consists of its data and description, which describes its name, dtype, shape, and format.
- An operator consists of its name, type, input, and attributes.
- A graph consists of the network name, operator list, and input and output operators.
There are three graph build scenarios. Select one based on your requirements.
Graph Build to an Offline Model
In this scenario, a graph is compiled and saved as an OM offline model. Figure 1 shows the process. For details about services, see Modifying a Graph Using a Custom Pass.
Compiling and Running a Graph
Figure 2 shows the workflow of compiling and running a graph. For details about services, see Graph Build to an .om Offline Model.
Compiling a Graph to an Offline Model and Running the Graph (Distributed Compilation and Partitioning of Foundation Models)
Figure 3 shows the process. For details about services, see Graph Build to an Offline Model and Graph Run (Distributed Build and Partitioning of Foundation Models).
Parent topic: Introduction


