EsCreateGraphInput
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Header File/Library File
- Header file: #include <ge/esb_funcs.h>
- Library files: libeager_style_graph_builder_base.so and libeager_style_graph_builder_base_static.a
Function Usage
Creates a data input on a graph.
Prototype
1 | EsCTensorHolder *EsCreateGraphInput(EsCGraphBuilder *graph, int64_t index) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
graph |
Input |
Pointer to the graph builder. |
index |
Input |
Index of the input graph, starting from 0. The node is named input_{index}. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
EsCTensorHolder * |
Pointer to the created tensor holder on success, or nullptr on failure. |
Constraints
None
Examples
1 2 3 4 5 | // 1. Create a graph builder (EsCGraphBuilder). EsCGraphBuilder *builder = EsCreateGraphBuilder("graph_name"); // 2. Add a start node. EsCTensorHolder *data0 = EsCreateInput(builder, 0); // Add input node 0. EsCTensorHolder *data1 = EsCreateInput(builder, 1); // Add input node 1. |
Parent topic: C/C++ APIs