aclgrphBuildInitialize

Description

Initializes model build, for allocating resources.

Prototype

APIs using strings will be deprecated in later versions. Use APIs supporting non-string data instead.

graphStatus aclgrphBuildInitialize(std::map<std::string, std::string> &global_options);
graphStatus aclgrphBuildInitialize(std::map<AscendString, AscendString> &global_options);

Restrictions

aclgrphBuildInitialize can be called only once per process.

After aclgrphBuildInitialize is called, aclgrphBuildModel can be called repeatedly per process.

For the same build arguments passed to aclgrphBuildModel and aclgrphBuildInitialize, you need to configure them once only. If the same arguments are passed repeatedly, the arguments passed to aclgrphBuildModel are used.

Parameters

Parameter

Input/Output

Description

global_options

Input

Global configuration parameter.

A key-value mapping table of type string, for the initialization configuration of offline model build. key indicates the option type, and value indicates the option value.

For details, see aclgrphBuildInitialize Configuration Parameters.

Returns

Parameter

Type

Description

-

graphStatus

GRAPH_SUCCESS on success;

else, failure.