Session Constructor
Applicability
Product |
Supported |
|---|---|
Atlas 350 Accelerator Card |
√ |
√ |
|
√ |
|
x |
|
√ |
|
√ |
Function Usage
Initializes a session.
Prototype
1 | Session(options: Optional[dict] = None) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
options |
Input |
Configuration option dictionary. This parameter is optional. |
Returns
None
Restrictions
- If the options value is not of the dictionary type, TypeError is thrown.
- If the session fails to be created, RuntimeError is thrown.
Parent topic: Session APIs