class ov::descriptor::Output

Overview

#include <output.hpp>

class Output
{
public:
    // construction

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

    // methods

    std::shared_ptr<Node> get_node() const;
    size_t get_index() const;
    ov::Output<Node> get_output() const;
    std::shared_ptr<Tensor> get_tensor_ptr() const;
    void set_tensor_ptr(const std::shared_ptr<Tensor>& tensor);
    void add_input(Input \* input);
    void remove_input(Input \* input);
    const std::vector<Input \*>& get_inputs() const;
    Tensor& get_tensor() const;
    RTMap& get_rt_info();
    const RTMap& get_rt_info() const;
    const Shape& get_shape() const;
    const PartialShape& get_partial_shape() const;
    const element::Type& get_element_type() const;
    Output& operator = (const Output&);
};

Detailed Documentation

Construction

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

Parameters:

node

Node that owns this output.

index

Position of the output tensor in all output tensors

tensor

The tensor where the value will be written

Methods

const Shape& get_shape() const

Returns:

the shape of the output

const PartialShape& get_partial_shape() const

Returns:

the partial shape of the output

const element::Type& get_element_type() const

Returns:

the element type of the output