Session Constructor

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. For details about the supported configuration items, see the parameters of the session level in Options.

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.