Updated on 2022-03-13 GMT+08:00

Parsing the Matrix Configuration File

Parses the configuration file. The Matrix parses the configuration file and writes the generated graph back to the list for the user. This API is defined in graph.h.

Syntax

static HIAI_StatusT Graph::ParseConfigFile(const std::string& configFile, GraphConfigList& graphConfigList)

Parameter Description

Parameter

Description

Value Range

configFile

Configuration file path.

Ensure that the transferred file path is correct.

-

graphConfigList

Protobuf data format.

-

Return Value

For details about the returned error codes, see "Error Codes."

Error Codes

No.

Error Level

Error Code

Description

1

-

HIAI_GRAPH_GET_INSTANCE_NULL

-