run_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

Runs a graph.

Prototype

1
run_graph(graph_id: int, inputs: List[Tensor]) -> List[Tensor]

Parameters

Parameter

Input/Output

Description

graph_id

Input

Graph ID.

inputs

Input

List of input tensors.

Returns

(List[Tensor]) Output tensor list.

Restrictions

  • If graph_id is not an integer, TypeError is thrown.
  • If any element in inputs is not of the tensor type, TypeError is thrown.
  • If the execution fails, RuntimeError is thrown.