Graph::CreateGraph (Creating a Graph Based on the Protobuf Data Format)
Creates and starts the entire graph based on the Protobuf data format. This API is defined in graph.h.
It can be called only on the host or Ascend 310 RC.
Syntax
static HIAI_StatusT Graph::CreateGraph(const GraphConfigList& graphConfig)
Parameter Description
Parameter |
Description |
Value Range |
---|---|---|
graphConfig |
Protobuf data format. When writing code, you can define the graphConfig parameter as follows:
|
The number of engines in a graph must be less than or equal to 512. |
Return Value
For details about the returned error codes, see "Error Codes."
Error Codes
No. |
Error Code |
Description |
---|---|---|
1 |
HIAI_OK |
The running is OK. |
2 |
HIAI_GRAPH_GET_INSTANCE_NULL |
A null instance is obtained. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot