diff --git a/modules/dnn/src/ie_ngraph.cpp b/modules/dnn/src/ie_ngraph.cpp index 42a4259646..e1bf738313 100644 --- a/modules/dnn/src/ie_ngraph.cpp +++ b/modules/dnn/src/ie_ngraph.cpp @@ -239,7 +239,9 @@ private: class InfEngineNgraphExtension : public InferenceEngine::IExtension { public: +#if INF_ENGINE_VER_MAJOR_LT(INF_ENGINE_RELEASE_2020_2) virtual void SetLogCallback(InferenceEngine::IErrorListener&) noexcept {} +#endif virtual void Unload() noexcept {} virtual void Release() noexcept {} virtual void GetVersion(const InferenceEngine::Version*&) const noexcept {} diff --git a/modules/dnn/src/op_inf_engine.hpp b/modules/dnn/src/op_inf_engine.hpp index f39c4ee23b..359bbaa9f5 100644 --- a/modules/dnn/src/op_inf_engine.hpp +++ b/modules/dnn/src/op_inf_engine.hpp @@ -226,7 +226,9 @@ private: class InfEngineExtension : public InferenceEngine::IExtension { public: +#if INF_ENGINE_VER_MAJOR_LT(INF_ENGINE_RELEASE_2020_2) virtual void SetLogCallback(InferenceEngine::IErrorListener&) noexcept {} +#endif virtual void Unload() noexcept {} virtual void Release() noexcept {} virtual void GetVersion(const InferenceEngine::Version*&) const noexcept {}