Fix of deprecated function usage in ngraph::OpSet (#7637)

This commit is contained in:
Vladislav Volkov 2021-09-24 10:56:05 +03:00 committed by GitHub
parent d7570e7aad
commit 002e68b535
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,7 @@
#include <mutex> #include <mutex>
#include <set> #include <set>
#include "ngraph/deprecated.hpp"
#include "ngraph/factory.hpp" #include "ngraph/factory.hpp"
#include "ngraph/ngraph_visibility.hpp" #include "ngraph/ngraph_visibility.hpp"
#include "ngraph/node.hpp" #include "ngraph/node.hpp"
@ -36,7 +37,9 @@ public:
/// \brief Insert OP_TYPE into the opset with the default name and factory /// \brief Insert OP_TYPE into the opset with the default name and factory
template <typename OP_TYPE, typename std::enable_if<ngraph::HasTypeInfoMember<OP_TYPE>::value, bool>::type = true> template <typename OP_TYPE, typename std::enable_if<ngraph::HasTypeInfoMember<OP_TYPE>::value, bool>::type = true>
void insert() { void insert() {
NGRAPH_SUPPRESS_DEPRECATED_START
ov::OpSet::insert<OP_TYPE>(OP_TYPE::type_info.name); ov::OpSet::insert<OP_TYPE>(OP_TYPE::type_info.name);
NGRAPH_SUPPRESS_DEPRECATED_END
} }
template <typename OP_TYPE, typename std::enable_if<!ngraph::HasTypeInfoMember<OP_TYPE>::value, bool>::type = true> template <typename OP_TYPE, typename std::enable_if<!ngraph::HasTypeInfoMember<OP_TYPE>::value, bool>::type = true>