get_in_data_nodes_and_port_indexes

Function Usage

Obtains the data node and port index of the 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)

Constraints

  • If in_index is not an integer, a TypeError is thrown.
  • If the value fails to be obtained, RuntimeError is thrown.