__init__
Applicable Products
All processors
Function Usage
Constructs SubgraphInput. Two construction methods are supported: constructing with empty inputs (and then appending anchors through add_input), or constructing from an iterable of (node, out_index) pairs.
Prototype
1 2 | __init__() -> None __init__(node_inputs: Iterable[tuple[Node, int]]) -> None |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
node_inputs |
Input |
(Optional) An iterable of (node, out_index) pairs. Each element must be a 2-tuple; otherwise, the C++ layer raises a RuntimeError. |
Returns
None
Restrictions
When node_inputs is passed, each element must be a 2-tuple. Otherwise, RuntimeError is thrown at the C++ layer.
Parent topic: SubgraphInput