AddEdgeAndUpdatePeerDesc
Applicability
Product |
Supported or Not |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Header File/Library File
- Header file: #include <ge/compliant_node_builder.h>
- Library files: libeager_style_graph_builder_base.so and libeager_style_graph_builder_base_static.a
Function Usage
Adds an edge and updates the description of the peer tensor.
Prototype
1 | graphStatus AddEdgeAndUpdatePeerDesc(Graph &graph, GNode &src_node, int32_t src_port_index, GNode &dst_node, int32_t dst_port_index) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
graph |
Input |
Graph object to which the source node src_node and destination node dst_node belong. |
src_node |
Input |
Source node. |
src_port_index |
Input |
Port index of the source node. |
dst_node |
Input |
Destination node. |
dst_port_index |
Input |
Port index of the destination node. |
Returns
Parameter |
Type |
Description |
|---|---|---|
- |
graphStatus |
GRAPH_SUCCESS(0): success. Other values: failure. |
Constraints
None
Parent topic: CompliantNodeBuilder