create_inputs

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

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.