Replaced copy_with_new_args to clone_with_new_inputs
authorIlya Churaev <ilya.churaev@intel.com>
Mon, 20 Jul 2020 12:43:00 +0000 (15:43 +0300)
committerDmitry Kurtaev <dmitry.kurtaev+github@gmail.com>
Mon, 3 Aug 2020 20:08:29 +0000 (23:08 +0300)
modules/dnn/src/ie_ngraph.cpp

index aea2955d592872fd98907275735aa8562220fd85..82d8b9ca73cc090d208b16a59f4ffad8bbbcec69 100644 (file)
@@ -109,6 +109,12 @@ public:
         }
     }
 
+#if INF_ENGINE_VER_MAJOR_GE(INF_ENGINE_RELEASE_2020_4)
+    std::shared_ptr<ngraph::Node> clone_with_new_inputs(const ngraph::OutputVector& new_args) const override
+    {
+        return std::make_shared<NgraphCustomOp>(new_args, params);
+    }
+#else
     std::shared_ptr<ngraph::Node> 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<NgraphCustomOp>(new_args, params);
 #endif
     }
+#endif
 
     bool visit_attributes(ngraph::AttributeVisitor& visitor) override
     {