get_in_data_nodes_and_port_indexes

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

Obtains the data node and port index of a specified input index.

Prototype

1
get_in_data_nodes_and_port_indexes(in_index: int) -> Tuple[Node, int]

Parameters

Parameter

Input/Output

Description

in_index

Input

Input index.

Returns

(Tuple[Node, int]) (input node, port index).

Restrictions

  • If in_index is not an integer, TypeError is thrown.
  • If the obtaining fails, RuntimeError is thrown.