aclgrphBuildInitialize
Applicability
|
Product |
Supported |
|---|---|
|
Atlas 350 Accelerator Card |
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
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
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.