class ov::frontend::tensorflow::GraphIterator

Overview

Abstract representation for an input model graph that gives nodes in topologically sorted order. More…

#include <graph_iterator.hpp>

class GraphIterator: private ov::RuntimeAttribute
{
public:
    // typedefs

    typedef std::shared_ptr<GraphIterator> Ptr;

    // methods

    OPENVINO_RTTI("Variant::GraphIterator");
    virtual size_t size() const = 0;
    virtual void reset() = 0;
    virtual void next() = 0;
    virtual bool is_end() const = 0;
    virtual std::shared_ptr<DecoderBase> get_decoder() const = 0;
    virtual std::shared_ptr<GraphIterator> get_body_graph_iterator(const std::string& func_name) const = 0;
    virtual std::vector<std::string> get_input_names() const = 0;
    virtual std::vector<std::string> get_output_names() const = 0;
};

Inherited Members

public:
    // typedefs

    typedef std::shared_ptr<RuntimeAttribute> Ptr;
    typedef std::tuple<::ov::RuntimeAttribute> Base;

    // methods

    static _OPENVINO_HIDDEN_METHOD const DiscreteTypeInfo& get_type_info_static();
    virtual const DiscreteTypeInfo& get_type_info() const;
    virtual bool is_copyable() const;
    virtual bool is_copyable(const std::shared_ptr<Node>& to) const;
    virtual Any init(const std::shared_ptr<Node>& node) const;
    virtual Any merge(const ov::NodeVector& nodes) const;
    virtual Any merge(const ov::OutputVector& outputs) const;
    virtual std::string to_string() const;
    virtual bool visit_attributes(AttributeVisitor&);
    bool visit_attributes(AttributeVisitor& visitor) const;

Detailed Documentation

Abstract representation for an input model graph that gives nodes in topologically sorted order.

Methods

virtual size_t size() const = 0

Get a number of operation nodes in the graph.

virtual void reset() = 0

Set iterator to the start position.

virtual void next() = 0

Move to the next node in the graph.

virtual bool is_end() const = 0

Returns true if iterator goes out of the range of available nodes.

virtual std::shared_ptr<DecoderBase> get_decoder() const = 0

Return a pointer to a decoder of the current node.

virtual std::shared_ptr<GraphIterator> get_body_graph_iterator(const std::string& func_name) const = 0

Checks if the main model graph contains a function of the requested name in the library Returns GraphIterator to this function and nullptr, if it does not exist.

virtual std::vector<std::string> get_input_names() const = 0

Returns a vector of input names in the original order.

virtual std::vector<std::string> get_output_names() const = 0

Returns a vector of output names in the original order.