Public Member Functions
ngraph::Output< Node > Class Reference

A handle for one of a node's outputs. More...

#include <node_output.hpp>

Public Member Functions

 Output (Node *node, size_t index)
 Constructs a Output. More...
 
 Output (const std::shared_ptr< Node > &node, size_t index)
 Constructs a Output. More...
 
template<typename T >
 Output (const std::shared_ptr< T > &node)
 Constructs a Output, referencing the zeroth output of the node. More...
 
 Output ()=default
 A null output.
 
void reset ()
 
Output< Nodefor_node (const std::shared_ptr< Node > &node)
 This output position for a different node.
 
Nodeget_node () const
 
std::shared_ptr< Nodeget_node_shared_ptr () const
 
size_t get_index () const
 
descriptor::Tensor & get_tensor () const
 
std::shared_ptr< descriptor::Tensor > get_tensor_ptr () const
 
const element::Type & get_element_type () const
 
const Shapeget_shape () const
 
const PartialShapeget_partial_shape () const
 
std::set< Input< Node > > get_target_inputs () const
 
void remove_target_input (const Input< Node > &target_input) const
 Removes a target input from the output referenced by this output handle. More...
 
void replace (const Output< Node > &replacement)
 Replace all users of this value with replacement.
 
bool operator== (const Output &other) const
 
bool operator!= (const Output &other) const
 
bool operator< (const Output &other) const
 
bool operator> (const Output &other) const
 
bool operator<= (const Output &other) const
 
bool operator>= (const Output &other) const
 

Detailed Description

A handle for one of a node's outputs.

Constructor & Destructor Documentation

◆ Output() [1/3]

ngraph::Output< Node >::Output ( Node node,
size_t  index 
)

Constructs a Output.

Parameters
nodeA pointer to the node for the output handle.
indexThe index of the output.

◆ Output() [2/3]

ngraph::Output< Node >::Output ( const std::shared_ptr< Node > &  node,
size_t  index 
)

Constructs a Output.

Parameters
nodeA shared_ptr to the node for the output handle.
indexThe index of the output.

TODO: Make a plan to deprecate this.

◆ Output() [3/3]

template<typename T >
ngraph::Output< Node >::Output ( const std::shared_ptr< T > &  node)
inline

Constructs a Output, referencing the zeroth output of the node.

Parameters
nodeA shared_ptr to the node for the output handle.

Member Function Documentation

◆ get_element_type()

const element::Type& ngraph::Output< Node >::get_element_type ( ) const
Returns
The element type of the output referred to by this output handle.

◆ get_index()

size_t ngraph::Output< Node >::get_index ( ) const
Returns
The index of the output referred to by this output handle.

◆ get_node()

Node* ngraph::Output< Node >::get_node ( ) const
Returns
A pointer to the node referred to by this output handle.

◆ get_node_shared_ptr()

std::shared_ptr<Node> ngraph::Output< Node >::get_node_shared_ptr ( ) const
Returns
A shared_ptr to the node referred to by this output handle.

TODO: Make a plan to deprecate this.

◆ get_partial_shape()

const PartialShape& ngraph::Output< Node >::get_partial_shape ( ) const
Returns
The partial shape of the output referred to by this output handle.

◆ get_shape()

const Shape& ngraph::Output< Node >::get_shape ( ) const
Returns
The shape of the output referred to by this output handle.

◆ get_target_inputs()

std::set<Input<Node> > ngraph::Output< Node >::get_target_inputs ( ) const
Returns
A set containing handles for all inputs targeted by the output referenced by this output handle.

◆ get_tensor()

descriptor::Tensor& ngraph::Output< Node >::get_tensor ( ) const
Returns
A reference to the tensor descriptor for this output.

◆ get_tensor_ptr()

std::shared_ptr<descriptor::Tensor> ngraph::Output< Node >::get_tensor_ptr ( ) const
Returns
A shared point to the tensor ptr for this output.

◆ remove_target_input()

void ngraph::Output< Node >::remove_target_input ( const Input< Node > &  target_input) const

Removes a target input from the output referenced by this output handle.

Parameters
target_inputThe target input to remove.

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