23.08
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_GRAPH_EDGE_H
25 #define ARM_COMPUTE_GRAPH_EDGE_H
70 return (_producer ==
nullptr) ?
EmptyNodeID : _producer->
id();
78 return (_consumer ==
nullptr) ?
EmptyNodeID : _consumer->
id();
102 return _producer_idx;
110 return _consumer_idx;
146 unsigned int _producer_idx;
147 unsigned int _consumer_idx;
void update_bound_tensor(Tensor *tensor)
Bind the edge to another tensor.
EdgeID id() const
Returns edge id.
unsigned int producer_idx() const
Returns the index of the output that produces the result in the producer node.
INode * consumer() const
Returns consumer node.
Tensor * tensor() const
Returns the tensor associated with this edge.
NodeID consumer_id() const
Returns sink node id.
NodeID producer_id() const
Returns producer node id.
TensorID id() const
Tensor ID accessor.
Copyright (c) 2017-2023 Arm Limited.
unsigned int consumer_idx() const
Returns the index of the input that consumes the result in the consumer node.
constexpr TensorID NullTensorID
Constant NodeID specifying an equivalent of null node.
INode * producer() const
Returns producer node.
NodeID id() const
Returns node's ID.
constexpr NodeID EmptyNodeID
Constant EdgeID specifying an equivalent of null edge.
TensorID tensor_id() const
Returns the tensor id associated with this edge.
Edge(EdgeID id, INode *producer, unsigned int producer_idx, INode *consumer, unsigned int consumer_idx, Tensor *tensor)
Default Constructor.