GetInputIndexByName

Description

Obtains the input port index based on the port name of an operator.

Prototype

graphStatus GetInputIndexByName(const AscendString &name, int32_t &index);

Restrictions

None

Parameters

Parameter

Input/Output

Description

name

Input

Port name of the operator. For a dynamic input, the port name and index must be passed.

index

Output

Input port index of the operator.

Returns

Parameter

Type

Description

-

graphStatus

GRAPH_SUCCESS(0) on success;

else, failure.