remove_edge

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

Removes an edge.

Prototype

1
remove_edge(src_node: Node, src_port_index: int, dst_node: Node, dst_port_index: int) -> None

Parameters

Parameter

Input/Output

Description

src_node

Input

Source node of an edge.

src_port_index

Input

Source port index. Set this parameter to -1 when removing a control edge.

dst_node

Input

Target node of an edge.

dst_port_index

Input

Target port index. Set this parameter to -1 when removing a control edge.

Returns

None

Restrictions

  • If the parameter type is incorrect, TypeError is thrown.
  • If the removal fails, RuntimeError is thrown.