EsSetGraphOutput
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
Sets the output of a graph.
Prototype
1 | uint32_t EsSetGraphOutput(EsCTensorHolder *tensor, int64_t output_index) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
tensor |
Input |
Output tensor. |
output_index |
Input |
Output index of the graph. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
uint32_t |
0: success; other values: failure |
Constraints
None
Examples
1 2 3 | EsCGraphBuilder *graph = EsCreateGraphBuilder("test_graph"); auto *tensor = EsCreateGraphInput(graph, 0); uint32_t result = EsSetGraphOutput(tensor, 0); |
Parent topic: C/C++ APIs