aclgrphBuildInitialize

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product / Atlas A3 inference product

Atlas A2 training product / Atlas A2 inference product

Atlas 200I/500 A2 inference product

Atlas inference product

Atlas training product

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 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.