GetOutputIndexByName
Description
Obtains the output port index based on the port name of an operator.
Prototype
graphStatus GetOutputIndexByName(const AscendString &name, int32_t &index);
Restrictions
None
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
name |
Input |
Port name of the operator. |
index |
Output |
Output port index of the operator. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
graphStatus |
GRAPH_SUCCESS(0) on success; else, failure. |
Parent topic: Class GNode