class ov::Output<const Node>

Overview

A handle for one of a node’s outputs. More…

#include <node_output.hpp>

template <>
class Output<const Node>
{
public:
    // construction

    Output(const Node \* node, size_t index);
    Output(const std::shared_ptr<const Node>& node, size_t index);

    template <typename T>
    Output(const std::shared_ptr<const T>& node);

    Output();

    // methods

    void reset();
    const Node \* get_node() const;
    std::shared_ptr<const 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;
    const RTMap& get_rt_info() const;
    const std::unordered_set<std::string>& get_names() const;
    std::string get_any_name() const;
    std::set<Input<Node>> get_target_inputs() 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;
    bool operator >= (const Output& other) const;
};

Detailed Documentation

A handle for one of a node’s outputs.

Construction

Output(const Node \* node, size_t index)

Constructs a Output.

Parameters:

node

A pointer to the node for the output handle.

index

The index of the output.

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

Constructs a Output.

Parameters:

node

A shared_ptr to the node for the output handle.

index

The index of the output.

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

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

Parameters:

node

A shared_ptr to the node for the output handle.

Output()

A null output.

Methods

const Node \* get_node() const

Returns:

A pointer to the node referred to by this output handle.

std::shared_ptr<const Node> get_node_shared_ptr() const

Returns:

A shared_ptr to the node referred to by this output handle.

size_t get_index() const

Returns:

The index of the output referred to by this output handle.

descriptor::Tensor& get_tensor() const

Returns:

A reference to the tensor descriptor for this output.

std::shared_ptr<descriptor::Tensor> get_tensor_ptr() const

Returns:

A shared point to the tensor ptr for this output.

const element::Type& get_element_type() const

Returns:

The element type of the output referred to by this output handle.

const Shape& get_shape() const

Returns:

The shape of the output referred to by this output handle.

const PartialShape& get_partial_shape() const

Returns:

The partial shape of the output referred to by this output handle.

const RTMap& get_rt_info() const

Returns:

The constant reference to runtime info map

const std::unordered_set<std::string>& get_names() const

Returns:

The tensor names associated with this output

std::string get_any_name() const

Returns:

Any tensor name associated with this output

std::set<Input<Node>> get_target_inputs() const

Returns:

A set containing handles for all inputs targeted by the output referenced by this output handle.

class ov::Output<Node>

Overview

A handle for one of a node’s outputs. More…

#include <node_output.hpp>

template <>
class Output<Node>
{
public:
    // construction

    Output(Node \* node, size_t index);
    Output(const std::shared_ptr<Node>& node, size_t index);

    template <typename T>
    Output(const std::shared_ptr<T>& node);

    Output();

    // methods

    void reset();
    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;
    RTMap& get_rt_info();
    const RTMap& get_rt_info() const;
    const std::unordered_set<std::string>& get_names() const;
    std::string get_any_name() const;
    void set_names(const std::unordered_set<std::string>& names);
    void add_names(const std::unordered_set<std::string>& names);
    std::set<Input<Node>> get_target_inputs() const;
    void remove_target_input(const Input<Node>& target_input) const;
    void replace(const Output<Node>& 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 Documentation

A handle for one of a node’s outputs.

Construction

Output(Node \* node, size_t index)

Constructs a Output.

Parameters:

node

A pointer to the node for the output handle.

index

The index of the output.

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

Constructs a Output.

Parameters:

node

A shared_ptr to the node for the output handle.

index

The index of the output.

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

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

Parameters:

node

A shared_ptr to the node for the output handle.

Output()

A null output.

Methods

Node \* get_node() const

Returns:

A pointer to the node referred to by this output handle.

std::shared_ptr<Node> get_node_shared_ptr() const

Returns:

A shared_ptr to the node referred to by this output handle.

size_t get_index() const

Returns:

The index of the output referred to by this output handle.

descriptor::Tensor& get_tensor() const

Returns:

A reference to the tensor descriptor for this output.

std::shared_ptr<descriptor::Tensor> get_tensor_ptr() const

Returns:

A shared point to the tensor ptr for this output.

const element::Type& get_element_type() const

Returns:

The element type of the output referred to by this output handle.

const Shape& get_shape() const

Returns:

The shape of the output referred to by this output handle.

const PartialShape& get_partial_shape() const

Returns:

The partial shape of the output referred to by this output handle.

RTMap& get_rt_info()

Returns:

The reference to runtime info map

const RTMap& get_rt_info() const

Returns:

The constant reference to runtime info map

const std::unordered_set<std::string>& get_names() const

Returns:

The tensor names associated with this output

std::string get_any_name() const

Returns:

Any tensor names associated with this output

void set_names(const std::unordered_set<std::string>& names)

Returns:

Set tensor names associated with this output

void add_names(const std::unordered_set<std::string>& names)

Returns:

Add tensor names associated with this output

std::set<Input<Node>> get_target_inputs() const

Returns:

A set containing handles for all inputs targeted by the output referenced by this output handle.

void remove_target_input(const Input<Node>& target_input) const

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

Parameters:

target_input

The target input to remove.

void replace(const Output<Node>& replacement)

Replace all users of this value with replacement.

class ov::Output