class ov::OpSet

Overview

Run-time opset information. More…

#include <opset.hpp>

class OpSet
{
public:
    // construction

    OpSet();
    OpSet(const std::string& name);
    OpSet(const OpSet& opset);

    // methods

    OpSet& operator = (const OpSet& opset);
    std::set<NodeTypeInfo>::size_type size() const;

    template <
        typename OP_TYPE,
        typename std::enable_if<!ngraph::HasTypeInfoMember<OP_TYPE>::value, bool>::type = true
        >
    void insert(const std::string& name);

    template <
        typename OP_TYPE,
        typename std::enable_if<!ngraph::HasTypeInfoMember<OP_TYPE>::value, bool>::type = true
        >
    void insert();

    const std::set<NodeTypeInfo>& get_types_info() const;
    ov::Node \* create(const std::string& name) const;
    ov::Node \* create_insensitive(const std::string& name) const;
    bool contains_type(const NodeTypeInfo& type_info) const;

    template <
        typename OP_TYPE,
        typename std::enable_if<!ngraph::HasTypeInfoMember<OP_TYPE>::value, bool>::type = true
        >
    bool contains_type() const;

    bool contains_type(const std::string& name) const;
    bool contains_type_insensitive(const std::string& name) const;
    bool contains_op_type(const Node \* node) const;
    const std::set<NodeTypeInfo>& get_type_info_set() const;
};

// direct descendants

class OpSet;

Detailed Documentation

Run-time opset information.

Methods

template <
    typename OP_TYPE,
    typename std::enable_if<!ngraph::HasTypeInfoMember<OP_TYPE>::value, bool>::type = true
    >
void insert(const std::string& name)

Insert OP_TYPE into the opset with a special name and the default factory.

template <
    typename OP_TYPE,
    typename std::enable_if<!ngraph::HasTypeInfoMember<OP_TYPE>::value, bool>::type = true
    >
void insert()

Insert OP_TYPE into the opset with the default name and factory.

ov::Node \* create(const std::string& name) const

Create the op named name using it’s factory.

ov::Node \* create_insensitive(const std::string& name) const

Create the op named name using it’s factory.

bool contains_type(const NodeTypeInfo& type_info) const

Return true if OP_TYPE is in the opset.

template <
    typename OP_TYPE,
    typename std::enable_if<!ngraph::HasTypeInfoMember<OP_TYPE>::value, bool>::type = true
    >
bool contains_type() const

Return true if OP_TYPE is in the opset.

bool contains_type(const std::string& name) const

Return true if name is in the opset.

bool contains_type_insensitive(const std::string& name) const

Return true if name is in the opset.

bool contains_op_type(const Node \* node) const

Return true if node’s type is in the opset.