create_inputs

Applicable Products

All processors

Function Usage

Creates 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

Restrictions

  • The input node index must start from 0 and increase consecutively.
  • If the parameter type is incorrect, TypeError is thrown.
  • If the input fails to be created, RuntimeError is thrown.