Skip to content

Commit 0291dd3

Browse files
committed
Replaced copy_with_new_args to clone_with_new_inputs
1 parent 1fabe92 commit 0291dd3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/dnn/src/ie_ngraph.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ class NgraphCustomOp: public ngraph::op::Op {
109109
}
110110
}
111111

112+
#if INF_ENGINE_VER_MAJOR_GE(INF_ENGINE_RELEASE_2020_4)
113+
std::shared_ptr<ngraph::Node> clone_with_new_inputs(const ngraph::OutputVector& new_args) const override
114+
{
115+
return std::make_shared<NgraphCustomOp>(new_args, params);
116+
}
117+
#else
112118
std::shared_ptr<ngraph::Node> copy_with_new_args(const ngraph::NodeVector& new_args) const override
113119
{
114120
#if INF_ENGINE_VER_MAJOR_GE(INF_ENGINE_RELEASE_2020_3)
@@ -117,6 +123,7 @@ class NgraphCustomOp: public ngraph::op::Op {
117123
return std::make_shared<NgraphCustomOp>(new_args, params);
118124
#endif
119125
}
126+
#endif
120127

121128
bool visit_attributes(ngraph::AttributeVisitor& visitor) override
122129
{

0 commit comments

Comments
 (0)