GetOpsTypeList

Applicable Products

All processors

Header File/Library File

  • Header file: #include <graph/operator_factory.h>
  • Library file: libgraph.so

Function Usage

Obtains the list of all supported operator types.

Prototype

APIs taking string arguments will be deprecated in future releases. Use APIs taking non-string arguments instead.

1
2
static graphStatus GetOpsTypeList(std::vector<std::string> &all_ops)
static graphStatus GetOpsTypeList(std::vector<AscendString> &all_ops)

Parameters

Parameter

Input/Output

Description

all_ops

Output

List of operator types.

Returns

graphStatus type. GRAPH_SUCCESS on success; GRAPH_FAILED on failure.

Restrictions

None