add_subgraph

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

Atlas inference product

Atlas training product

Function Usage

Adds a subgraph to a graph.

Prototype

1
add_subgraph(subgraph: Graph) -> None

Parameters

Parameter

Input/Output

Description

subgraph

Input

Subgraph object to be added.

Returns

None

Restrictions

  • If subgraph is not of the graph type, TypeError is thrown.
  • Subgraphs are indexed by name. The name of each subgraph in the parent graph must be unique.
  • If the addition fails, RuntimeError is thrown.