FindOpByType
Description
Obtains all operator objects of a specified type registered with a graph.
Prototype
APIs using strings will be deprecated in later versions. Use APIs supporting non-string data instead.
graphStatus FindOpByType(const std::string &type, std::vector<ge::Operator> &ops) const; graphStatus FindOpByType(const char_t *type, std::vector<ge::Operator> &ops) const;
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
type |
Input |
Operator type. |
ops |
Output |
Operator objects. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
graphStatus |
GRAPH_SUCCESS(0) on success; else, failure. |
Parent topic: Graph Construction APIs