Graph::CreateGraph (Creating a Graph Based on the Configuration File)
Creates and starts the entire graph. This API supports the connection between graphs in a single configuration file rather than in different configuration files. 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 std::string& configFile)
Parameter Description
Parameter |
Description |
Value Range |
---|---|---|
configFile |
Path of the graph configuration file. Ensure that the transferred file path is correct. |
A single configuration file supports a maximum of 2048 graphs. However, restricted by system resources, only several or dozens of graphs are supported based on different hardware configurations and graph sizes. |
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