Skip to content

Commit 1644af8

Browse files
committed
Merge pull request opencv#17536 from ilya-lavrenov:remove-error-listener
2 parents c2664d9 + 9697e3a commit 1644af8

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

modules/dnn/src/ie_ngraph.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,9 @@ class InfEngineNgraphCustomLayerFactory : public InferenceEngine::ILayerImplFact
239239
class InfEngineNgraphExtension : public InferenceEngine::IExtension
240240
{
241241
public:
242+
#if INF_ENGINE_VER_MAJOR_LT(INF_ENGINE_RELEASE_2020_2)
242243
virtual void SetLogCallback(InferenceEngine::IErrorListener&) noexcept {}
244+
#endif
243245
virtual void Unload() noexcept {}
244246
virtual void Release() noexcept {}
245247
virtual void GetVersion(const InferenceEngine::Version*&) const noexcept {}

modules/dnn/src/op_inf_engine.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,9 @@ class InfEngineBackendLayer : public Layer
226226
class InfEngineExtension : public InferenceEngine::IExtension
227227
{
228228
public:
229+
#if INF_ENGINE_VER_MAJOR_LT(INF_ENGINE_RELEASE_2020_2)
229230
virtual void SetLogCallback(InferenceEngine::IErrorListener&) noexcept {}
231+
#endif
230232
virtual void Unload() noexcept {}
231233
virtual void Release() noexcept {}
232234
virtual void GetVersion(const InferenceEngine::Version*&) const noexcept {}

0 commit comments

Comments
 (0)