HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
onnxruntime::Node::EdgeEnd Class Reference

#include <graph.h>

Public Member Functions

 EdgeEnd (const Node &node, int src_arg_index, int dst_arg_index) noexcept
 
 EdgeEnd (const Node &node) noexcept
 
const NodeGetNode () const noexcept
 
int GetSrcArgIndex () const
 
int GetDstArgIndex () const
 

Detailed Description

Class representing the end of an edge. It could be an input or output edge end of a node. For the node's input edge end, it's the source end, as the destination end is the node itself. For the node's output edge end, it's the destination end, as the source end is the node itself.

Definition at line 110 of file graph.h.

Constructor & Destructor Documentation

onnxruntime::Node::EdgeEnd::EdgeEnd ( const Node node,
int  src_arg_index,
int  dst_arg_index 
)
noexcept

Construct an EdgeEnd

Parameters
nodeThe source node if this is an input edge to the current node, or the destination node if this is an output edge from the current node.
src_arg_indexThe node arg index of source node of the edge.
dst_arg_indexThe node arg index of destination node of the edge.
onnxruntime::Node::EdgeEnd::EdgeEnd ( const Node node)
explicitnoexcept

Construct a control edge.

Parameters
nodeThe node the edge joins to the current node.

Member Function Documentation

int onnxruntime::Node::EdgeEnd::GetDstArgIndex ( ) const
inline

Gets the destination arg index.

Returns
the destination arg index of <*this> edge.

Definition at line 135 of file graph.h.

const Node& onnxruntime::Node::EdgeEnd::GetNode ( ) const
inlinenoexcept

Gets the Node that this EdgeEnd refers to.

Definition at line 127 of file graph.h.

int onnxruntime::Node::EdgeEnd::GetSrcArgIndex ( ) const
inline

Gets the source arg index.

Returns
the source arg index of <*this> edge.

Definition at line 131 of file graph.h.


The documentation for this class was generated from the following file: