aclgrphBuildInitialize

Applicability

Product

Supported or Not

Atlas A3 training products / Atlas A3 inference products

Atlas A2 training products / Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

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 of type string, for the initialization configuration of offline model build. key indicates the option type, and value indicates the option value.

For details about the configuration parameters supported by the mapping, 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.