aclgrphBuildInitialize

Applicable Products

All processors

Header File/Library File

  • Header file: #include <ge/ge_ir_build.h>
  • Library file: libge_compiler.so

Function Usage

Initializes model build, for allocating resources.

Prototype

APIs taking string arguments will be deprecated in future releases. Use APIs taking non-string arguments instead.

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

Parameters

Parameter

Input/Output

Description

global_options

Input

Global configuration parameter.

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

For details about the configuration parameters supported by the map, see aclgrphBuildInitialize Configuration Parameters.

Returns

Parameter

Type

Description

-

graphStatus

GRAPH_SUCCESS(0): success.

Other values: failure. For details, see ge::graphStatus.

Restrictions

aclgrphBuildInitialize can be called only once per process.

After this API is called, aclgrphBuildModel can be called repeatedly per process.

For the same options 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.