aclgrphGenerateForOp
Applicability
|
Product |
Supported or Not |
|---|---|
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
|
|
√ |
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
Restrictions
None