aclgrphGenerateForOp

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/Library File

  • Header file: #include <ge/ge_ir_build.h>
  • Library file: libge_compiler.so

Function Usage

Builds a graph based on the single-operator information or JSON file of a single-operator.

Prototype

1
2
graphStatus aclgrphGenerateForOp(const AscendString &op_type, const std::vector<TensorDesc> &inputs, const std::vector<TensorDesc> &outputs, Graph &graph)
graphStatus aclgrphGenerateForOp(const AscendString &json_path, std::vector<Graph> &graphs)

Parameters

Parameter

Input/Output

Description

op_type

Input

Operator type.

inputs

Input

List of input tensor formats of the operator.

outputs

Input

List of output tensor formats of the operator.

json_path

Input

JSON file path of a single-operator.

graph

Output

Generated graph.

graphs

Output

List of generated graphs

Returns

Parameter

Type

Description

-

graphStatus

GRAPH_SUCCESS(0): success.

Other values: failure. For details, see ge::graphStatus.

Restrictions

None