add_graph

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

Adds a graph to a session.

Prototype

1
add_graph(graph_id: int, add_graph: Graph, options: dict = None) -> None

Parameters

Parameter

Input/Output

Description

graph_id

Input

Graph ID.

add_graph

Input

Graph object to be added.

options

Input

Configuration options.

Returns

None

Restrictions

  • If graph_id is not an integer, TypeError is thrown.
  • If add_graph is not of the graph type, TypeError is thrown.
  • If the options value is not of the dictionary type, TypeError is thrown.
  • If the addition fails, RuntimeError is thrown.