GetAllOpName

Description

Obtain the names of all operators registered with a graph.

Prototype

APIs using strings will be deprecated in later versions. Use APIs supporting non-string data instead.

graphStatus GetAllOpName(std::vector<std::string> &op_name) const;
graphStatus GetAllOpName(std::vector<AscendString> &names) const;

Parameters

Parameter

Input/Output

Description

op_name

Output

Names of all operators in a graph.

names

Output

Names of all operators in a graph.

Returns

Parameter

Type

Description

-

graphStatus

SUCCESS on success;

FAILED on failure.

Exception Handling

None

Restrictions

This API is optional and is used in pair with AddOp.