GetRegisteredIrDef

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

x

Atlas inference products

Atlas training products

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, 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.

Constraints

None