GetOpsTypeList
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
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
Parent topic: OperatorFactory