EsGetProducer
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 snapshot of the ge::GNode instance.
Prototype
1 | EsCNode *EsGetProducer(EsCTensorHolder *tensor) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
tensor |
Input |
Pointer to the tensor holder. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
EsCNode * |
A pointer to the node on success, or nullptr on failure. |
Constraints
None
Examples
1 2 | auto *tensor = EsCreateGraphInput(graph, 0); auto *producer = static_cast<void *>(EsGetProducer(tensor)); |
Parent topic: C/C++ APIs