create_inputs
Function Usage
Create multiple inputs.
Prototype
1 | create_inputs(num: int, start_index: int = 0) -> List[TensorHolder] |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
num |
Input |
Number of inputs to be created. |
start_index |
Input |
Start index of the input. If the value is not 0, other inputs have been created. |
Returns
(List[TensorHolder]) Input tensor holder list.
Constraints
- The index of the input node must start from 0 and increase continuously.
- Throws TypeError if the parameter type is incorrect.
- If the input fails to be created, RuntimeError is thrown.
Parent topic: GraphBuilder