diff --git a/modules/dnn/src/ie_ngraph.cpp b/modules/dnn/src/ie_ngraph.cpp index cf94500a8c..82cb10eae9 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 a256989f96..337b4fbcb1 100644 --- a/modules/dnn/src/op_inf_engine.hpp +++ b/modules/dnn/src/op_inf_engine.hpp @@ -225,7 +225,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 {}