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

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

#include <node_input.hpp>

Public Member Functions

 Input (Node *node, size_t index)
 Constructs a Input. More...
 
Nodeget_node () const
 
size_t get_index () const
 
const element::Type & get_element_type () const
 
const Shapeget_shape () const
 
const PartialShapeget_partial_shape () const
 
Output< Nodeget_source_output () const
 
descriptor::Tensor & get_tensor () const
 
std::shared_ptr< descriptor::Tensor > get_tensor_ptr () const
 
bool get_is_relevant_to_shapes () const
 
bool get_is_relevant_to_values () const
 
void replace_source_output (const Output< Node > &new_source_output) const
 Replaces the source output of this input. More...
 
bool operator== (const Input &other) const
 
bool operator!= (const Input &other) const
 
bool operator< (const Input &other) const
 
bool operator> (const Input &other) const
 
bool operator<= (const Input &other) const
 
bool operator>= (const Input &other) const
 

Detailed Description

A handle for one of a node's inputs.

Constructor & Destructor Documentation

◆ Input()

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

Constructs a Input.

Parameters
nodePointer to the node for the input handle.
indexThe index of the input.

Member Function Documentation

◆ get_element_type()

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

◆ get_index()

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

◆ get_is_relevant_to_shapes()

bool ngraph::Input< Node >::get_is_relevant_to_shapes ( ) const
Returns
true if this input is relevant to its node's output shapes; else false.

◆ get_is_relevant_to_values()

bool ngraph::Input< Node >::get_is_relevant_to_values ( ) const
Returns
true if this input is relevant to its node's output values; else false.

◆ get_node()

Node* ngraph::Input< Node >::get_node ( ) const
Returns
A pointer to the node referenced by this input handle.

◆ get_partial_shape()

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

◆ get_shape()

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

◆ get_source_output()

Output<Node> ngraph::Input< Node >::get_source_output ( ) const
Returns
A handle to the output that is connected to this input.

◆ get_tensor()

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

◆ get_tensor_ptr()

std::shared_ptr<descriptor::Tensor> ngraph::Input< Node >::get_tensor_ptr ( ) const
Returns
A shared pointer to the tensor descriptor for this input.

◆ replace_source_output()

void ngraph::Input< Node >::replace_source_output ( const Output< Node > &  new_source_output) const

Replaces the source output of this input.

Parameters
new_source_outputA handle for the output that will replace this input's source.

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