From 16112d0ff722d1c781c9a74ba9b5dca81c6ba01b Mon Sep 17 00:00:00 2001 From: "Efode, Irina" Date: Fri, 9 Oct 2020 13:00:46 +0300 Subject: [PATCH] Fix CentOS compilation --- .../ngraph/runtime/reference/detection_output.hpp | 10 +++++----- ngraph/core/src/op/add.cpp | 2 ++ 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ngraph/core/reference/include/ngraph/runtime/reference/detection_output.hpp b/ngraph/core/reference/include/ngraph/runtime/reference/detection_output.hpp index d2499be7cf45a8..9d372b62c633ad 100644 --- a/ngraph/core/reference/include/ngraph/runtime/reference/detection_output.hpp +++ b/ngraph/core/reference/include/ngraph/runtime/reference/detection_output.hpp @@ -33,11 +33,11 @@ namespace ngraph private: struct NormalizedBBox { - dataType xmin = 0; - dataType ymin = 0; - dataType xmax = 0; - dataType ymax = 0; - dataType size = 0; + dataType xmin = dataType(0); + dataType ymin = dataType(0); + dataType xmax = dataType(0); + dataType ymax = dataType(0); + dataType size = dataType(0); }; using LabelBBox = std::map>; diff --git a/ngraph/core/src/op/add.cpp b/ngraph/core/src/op/add.cpp index bb3e0b2c14b447..aaa3b7f1752894 100644 --- a/ngraph/core/src/op/add.cpp +++ b/ngraph/core/src/op/add.cpp @@ -75,6 +75,7 @@ bool evaluate_add(const HostTensorPtr& arg0, // ------------------------------- v0 ------------------------------------------ +NGRAPH_SUPPRESS_DEPRECATED_START constexpr NodeTypeInfo op::v0::Add::type_info; op::v0::Add::Add(const Output& arg0, @@ -102,6 +103,7 @@ bool op::v0::Add::evaluate(const HostTensorVector &outputs, const HostTensorVect OV_ITT_SCOPED_TASK(itt::domains::nGraphOp, "op::v0::Add::evaluate"); return evaluate_add(inputs[0], inputs[1], outputs[0], get_autob()); } +NGRAPH_SUPPRESS_DEPRECATED_END // ------------------------------- v1 ------------------------------------------