BuildGraph
Header File/Library File
- Header file: #include <ge/ge_api.h>
- Library file: libge_runner.so
Function Usage
Synchronously builds the graph of a specified ID to generate an executable model.
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 |
ID of the graph. |
inputs |
Input |
Input data of the current graph. For details about the definition of the InputTensorInfo structure, see InputTensorInfo. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
Status |
SUCCESS: The graph build is successful. FAILED: The graph build fails. |
Restrictions
None
Parent topic: Session