class ngraph::OpSet

Overview

Run-time opset information. More…

#include <opset.hpp>

class OpSet: public ov::OpSet
{
public:
    // construction

    OpSet(const ov::OpSet& opset);
    OpSet(const ngraph::OpSet& opset);
    OpSet();

    // methods

    void insert(
        const std::string& name,
        const NodeTypeInfo& type_info,
        FactoryRegistry<Node>::Factory factory
        );

    template <typename OP_TYPE>
    void insert(const std::string& name);

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

    ngraph::FactoryRegistry<ngraph::Node>& get_factory_registry();
};

Inherited Members

public:
    // 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;

Detailed Documentation

Run-time opset information.

Methods

void insert(
    const std::string& name,
    const NodeTypeInfo& type_info,
    FactoryRegistry<Node>::Factory factory
    )

Insert an op into the opset with a particular name and factory.

template <typename OP_TYPE>
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.