EsCreateVariable
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 variable node.
Prototype
1 | EsCTensorHolder *EsCreateVariable(EsCGraphBuilder *graph, int32_t index, const char *name) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
graph |
Input |
Pointer to the graph builder. |
index |
Input |
Node index. |
name |
Input |
Node name. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
EsCTensorHolder * |
Pointer to the created tensor holder on success, or nullptr on failure. |
Constraints
None
Examples
1 2 | EsCGraphBuilder *graph = EsCreateGraphBuilder("test_graph"); auto variable = EsCreateVariable(graph, 0, "var0"); |
Parent topic: C/C++ APIs