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< Node > | for_node (const std::shared_ptr< Node > &node) |
This output position for a different node. | |
Node * | get_node () const |
std::shared_ptr< Node > | get_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 Shape & | get_shape () const |
const PartialShape & | get_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 |
A handle for one of a node's outputs.
ngraph::Output< Node >::Output | ( | Node * | node, |
size_t | index | ||
) |
Constructs a Output.
node | A pointer to the node for the output handle. |
index | The index of the output. |
ngraph::Output< Node >::Output | ( | const std::shared_ptr< Node > & | node, |
size_t | index | ||
) |
Constructs a Output.
node | A shared_ptr to the node for the output handle. |
index | The index of the output. |
TODO: Make a plan to deprecate this.
|
inline |
Constructs a Output, referencing the zeroth output of the node.
node | A shared_ptr to the node for the output handle. |
const element::Type& ngraph::Output< Node >::get_element_type | ( | ) | const |
size_t ngraph::Output< Node >::get_index | ( | ) | const |
Node* ngraph::Output< Node >::get_node | ( | ) | const |
std::shared_ptr<Node> ngraph::Output< Node >::get_node_shared_ptr | ( | ) | const |
shared_ptr
to the node referred to by this output handle.TODO: Make a plan to deprecate this.
const PartialShape& ngraph::Output< Node >::get_partial_shape | ( | ) | const |
const Shape& ngraph::Output< Node >::get_shape | ( | ) | const |
std::set<Input<Node> > ngraph::Output< Node >::get_target_inputs | ( | ) | const |
descriptor::Tensor& ngraph::Output< Node >::get_tensor | ( | ) | const |
std::shared_ptr<descriptor::Tensor> ngraph::Output< Node >::get_tensor_ptr | ( | ) | const |
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.
target_input | The target input to remove. |