Session Constructor and Destructor
Description
Constructs or destroys an object of class Session.
Prototype
APIs using strings will be deprecated in later versions. Use APIs supporting non-string data instead.
explicit Session(const std::map<std::string, std::string> &options); explicit Session(const std::map<AscendString, AscendString> &options); ~Session()
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
options |
Input |
A key-value mapping table, for the Session configuration. key indicates the options type, and value indicates the options value, both of type string. Generally, this parameter can be left empty, indicating using the same options configuration passed to the GEInitialize call. This parameter is available for configuring the current session separately. For its keys and values, see Command-Line Options for more details. |
Returns
None
Restrictions
Sessions cannot be executed concurrently. In addition, a session exclusively occupies resources. As such, creation of multiple sessions at once may fail due to insufficient resources.