diff --git a/ngraph/core/include/ngraph/opsets/opset.hpp b/ngraph/core/include/ngraph/opsets/opset.hpp index b7eecd1876a..227e22b51be 100644 --- a/ngraph/core/include/ngraph/opsets/opset.hpp +++ b/ngraph/core/include/ngraph/opsets/opset.hpp @@ -9,6 +9,7 @@ #include #include +#include "ngraph/deprecated.hpp" #include "ngraph/factory.hpp" #include "ngraph/ngraph_visibility.hpp" #include "ngraph/node.hpp" @@ -36,7 +37,9 @@ public: /// \brief Insert OP_TYPE into the opset with the default name and factory template ::value, bool>::type = true> void insert() { + NGRAPH_SUPPRESS_DEPRECATED_START ov::OpSet::insert(OP_TYPE::type_info.name); + NGRAPH_SUPPRESS_DEPRECATED_END } template ::value, bool>::type = true>