BuildGraph
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
x |
|
√ |
|
√ |
Header File/Library File
- Header file: #include <ge/ge_api.h>
- Library file: libge_runner.so
Function Usage
Builds the graph of a specified ID to generate an executable model. This API is synchronous.
Prototype
1 2 | 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 InputTensorInfo structure definition, see InputTensorInfo. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
Status |
SUCCESS: Subgraph build successful. FAILED: Subgraph build failed. |
Restrictions
None
Parent topic: Session