GetOpsTypeList

Applicability

Product

Supported or Not

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Header File

#include <graph/operator_factory.h>

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.

Constraints

None