EsBuildGraphAndReset
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
Returns the pointer to the ge::Graph instance. The ownership is transferred to the caller.
Prototype
1 | EsCGraph *EsBuildGraphAndReset(EsCGraphBuilder *graph) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
graph |
Input |
Pointer to the graph builder. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
EsCGraph * |
A pointer to the graph on success, or nullptr on failure. The ownership is transferred to the caller. After the API is called, the graph builder is no longer available. |
Constraints
None
Examples
1 2 3 | EsCGraphBuilder *graph = EsCreateGraphBuilder("test_graph"); auto *tensor = EsCreateGraphInput(graph, 0); EsCGraph *build_graph = EsBuildGraphAndReset(graph); |
Parent topic: C/C++ APIs