Session Constructor

Applicability

Product

Supported

Atlas 350 Accelerator Card

Atlas A3 training product/Atlas A3 inference product

Atlas A2 training product/Atlas A2 inference product

Atlas 200I/500 A2 inference product

x

Atlas inference product

Atlas training product

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.