GetRegisteredIrDef
Applicable Products
Ascend 950PR /Ascend 950DT : supportedAtlas A3 training products /Atlas A3 inference products : supportedAtlas A2 training products /Atlas A2 inference products : supportedAtlas 200I/500 A2 inference products : not supportedAtlas inference products : supportedAtlas training products : supported
Header File/Library File
- Header file: #include <ge/ge_api.h>
- Library file: libge_runner.so
Function Usage
Obtains the definition of the registered IR operator prototype.
Prototype
1 | ge::Status GetRegisteredIrDef(const char *op_type, std::vector<std::pair<ge::AscendString, ge::AscendString>> &inputs, std::vector<std::pair<ge::AscendString, ge::AscendString>> &outputs, std::vector<std::pair<ge::AscendString, ge::AscendString>> &attrs) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
op_type |
Input |
Operator type. |
inputs |
Input |
Input name and type of the operator. The type can be required, dynamic, or optional. |
outputs |
Input |
Output name and type of the operator. The type can be required or dynamic. |
attrs |
Input |
Operator attribute name and type. The type can be INT, FLOAT, STRING, BOOL, DATA_TYPE, TENSOR, NAMED_ATTRS, LIST_INT, LIST_FLOAT, LIST_STRING, LIST_BOOL, LIST_TENSOR, BYTES, LIST_LIST_INT, or LIST_NAMED_ATTRS. (The style is the same as that of existing APIs. The data type is prefixed with VT_.) |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
Status |
SUCCESS: The query succeeds. FAILED: The query failed. |
Restrictions
None
Parent topic: Basic Data Structures and APIs of Graphs