GeSession Constructor and Destructor
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
x |
|
√ |
|
√ |
Header File/Library File
- Header file: #include <ge/ge_api_v2.h>
- Library file: libge_runner_v2.so
Function Usage
Constructs and destructs an object of class GeSession.
Prototype
1 2 | explicit GeSession(const std::map<AscendString, AscendString> &options) ~GeSession() |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
options |
Input |
A key-value mapping table, for the GeSession configuration. key indicates the parameter type, and value indicates the parameter value, both of type string. Generally, this parameter can be left blank, indicating using the same options configuration passed to GEInitializeV2. This parameter is available for configuring the current GeSession separately. For its keys and values, see the parameters of the session level in Options. |
Returns
None
Restrictions
GeSessions cannot be executed concurrently. In addition, a GeSession exclusively occupies resources. As such, creating multiple GeSessions concurrently may fail due to insufficient resources.