run_graph

Function Usage

Run the 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.

Constraints

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