GEInitialize
Description
Initializes GE.
Prototype
APIs using strings will be deprecated in later versions. Use APIs supporting non-string data instead.
Status GEInitialize(const std::map<std::string, std::string>& options); Status GEInitialize(const std::map<AscendString, AscendString> &options);
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
options |
Input |
A key-value mapping table, for the initialization configuration. key indicates the options type, and value indicates the options value, both of type string. See Table 1 for the supported configurations. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
Status |
0: The initialization is successful. Other values: The initialization fails. |
Restrictions
- GE does not support multi-instance execution. Only one instance can be initialized at a time.
- If this API is called for multiple times but the GEFinalize API is not called, the execution result is unpredictable.
Parent topic: Graph Running APIs