BuildGraph
Description
Builds the graph of a specified ID to generate an executable model. This API is synchronous.
Prototype
Status BuildGraph(uint32_t graph_id, const std::vector<InputTensorInfo> &inputs); Status BuildGraph(uint32_t graph_id, const std::vector<ge::Tensor> &inputs);
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
graph_id |
Input |
Subgraph ID. |
inputs |
Input |
Inputs of the subgraph. For details about the struct definition, see InputTensorInfo. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
Status |
SUCCESS: Subgraph build successful. FAILED: Subgraph build failed. |
Restrictions
None
Parent topic: Graph Running APIs