aclgrphBuildInitialize
Applicability
|
Product |
Supported or Not |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
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
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.