Graph Edge.
More...
#include <Edge.h>
Graph Edge.
Definition at line 39 of file Edge.h.
Default Constructor.
- Parameters
-
[in] | id | Edge id |
[in] | producer | Producer node id |
[in] | producer_idx | Producer node output index |
[in] | consumer | Consumer node id |
[in] | consumer_idx | Consumer node input index |
[in] | tensor | Tensor associated with the edge |
Definition at line 51 of file Edge.h.
Tensor * tensor() const
Returns the tensor associated with this edge.
unsigned int producer_idx() const
Returns the index of the output that produces the result in the producer node.
unsigned int consumer_idx() const
Returns the index of the input that consumes the result in the consumer node.
INode * producer() const
Returns producer node.
INode * consumer() const
Returns consumer node.
INode* consumer |
( |
| ) |
const |
|
inline |
unsigned int consumer_idx |
( |
| ) |
const |
|
inline |
Returns the index of the input that consumes the result in the consumer node.
- Returns
- Consumer node input index
Definition at line 108 of file Edge.h.
110 return _consumer_idx;
Returns edge id.
- Returns
- Edge id
Definition at line 60 of file Edge.h.
INode* producer |
( |
| ) |
const |
|
inline |
unsigned int producer_idx |
( |
| ) |
const |
|
inline |
Returns the index of the output that produces the result in the producer node.
- Returns
- Producer node output index
Definition at line 100 of file Edge.h.
102 return _producer_idx;
Returns the tensor associated with this edge.
- Returns
- Tensor id
Definition at line 116 of file Edge.h.
void update_bound_tensor |
( |
Tensor * |
tensor | ) |
|
|
inline |
Bind the edge to another tensor.
- Note
- If tensor is nullptr then nothing happens
- Parameters
-
[in] | tensor | Tensor to bind the edge to |
Definition at line 134 of file Edge.h.
Tensor * tensor() const
Returns the tensor associated with this edge.
The documentation for this class was generated from the following file: