From 0291dd3ef8a0d004366ef180dc0704ea736f9640 Mon Sep 17 00:00:00 2001 From: Ilya Churaev Date: Mon, 20 Jul 2020 15:43:00 +0300 Subject: [PATCH] Replaced copy_with_new_args to clone_with_new_inputs --- modules/dnn/src/ie_ngraph.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/dnn/src/ie_ngraph.cpp b/modules/dnn/src/ie_ngraph.cpp index f02ef45ef1..9cba39eb68 100644 --- a/modules/dnn/src/ie_ngraph.cpp +++ b/modules/dnn/src/ie_ngraph.cpp @@ -109,6 +109,12 @@ public: } } +#if INF_ENGINE_VER_MAJOR_GE(INF_ENGINE_RELEASE_2020_4) + std::shared_ptr clone_with_new_inputs(const ngraph::OutputVector& new_args) const override + { + return std::make_shared(new_args, params); + } +#else std::shared_ptr copy_with_new_args(const ngraph::NodeVector& new_args) const override { #if INF_ENGINE_VER_MAJOR_GE(INF_ENGINE_RELEASE_2020_3) @@ -117,6 +123,7 @@ public: return std::make_shared(new_args, params); #endif } +#endif bool visit_attributes(ngraph::AttributeVisitor& visitor) override {