aclgrphGenerateForOp

Description

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

Prototype

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)

Restrictions

None

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

Constructed graph.

graphs

Output

List of generated graphs

Returns

Parameter

Type

Description

-

graphStatus

0 on success;

else, failure.