From: Vladislav Vinogradov Date: Wed, 21 Oct 2020 03:34:35 +0000 (+0300) Subject: [NGRAPH] Fix UNITY build (#2732) X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b2747e68f5271f7d26d66f0f5779c1a4503eae36;p=platform%2Fupstream%2Fdldt.git [NGRAPH] Fix UNITY build (#2732) --- diff --git a/ngraph/core/include/ngraph/op/gather.hpp b/ngraph/core/include/ngraph/op/gather.hpp index 5d72359..9ec7481 100644 --- a/ngraph/core/include/ngraph/op/gather.hpp +++ b/ngraph/core/include/ngraph/op/gather.hpp @@ -50,6 +50,11 @@ namespace ngraph protected: size_t m_axis; + + private: + static const int PARAMS; + static const int INDICES; + static const int AXIS; NGRAPH_SUPPRESS_DEPRECATED_END }; } @@ -81,6 +86,11 @@ namespace ngraph bool evaluate(const HostTensorVector& outputs, const HostTensorVector& inputs) const override; + + private: + static const int PARAMS; + static const int INDICES; + static const int AXIS; }; } diff --git a/ngraph/core/include/ngraph/op/gather_nd.hpp b/ngraph/core/include/ngraph/op/gather_nd.hpp index 5129f60..d5d6d0f 100644 --- a/ngraph/core/include/ngraph/op/gather_nd.hpp +++ b/ngraph/core/include/ngraph/op/gather_nd.hpp @@ -45,6 +45,10 @@ namespace ngraph void validate_and_infer_types() override; virtual std::shared_ptr clone_with_new_inputs(const OutputVector& new_args) const override; + + private: + static const int PARAMS; + static const int INDICES; NGRAPH_SUPPRESS_DEPRECATED_END }; } diff --git a/ngraph/core/src/op/gather.cpp b/ngraph/core/src/op/gather.cpp index b735797..ebab621 100644 --- a/ngraph/core/src/op/gather.cpp +++ b/ngraph/core/src/op/gather.cpp @@ -28,9 +28,9 @@ NGRAPH_SUPPRESS_DEPRECATED_START using namespace std; using namespace ngraph; -static const int PARAMS = 0; -static const int INDICES = 1; -static const int AXIS = 2; +const int op::v0::Gather::PARAMS = 0; +const int op::v0::Gather::INDICES = 1; +const int op::v0::Gather::AXIS = 2; constexpr NodeTypeInfo op::v0::Gather::type_info; @@ -100,6 +100,10 @@ void op::v0::Gather::validate_and_infer_types() constexpr NodeTypeInfo op::v1::Gather::type_info; const int64_t op::v1::Gather::AXIS_NOT_SET_VALUE; +const int op::v1::Gather::PARAMS = 0; +const int op::v1::Gather::INDICES = 1; +const int op::v1::Gather::AXIS = 2; + op::v1::Gather::Gather(const Output& params, const Output& indices, const Output& axes) diff --git a/ngraph/core/src/op/gather_nd.cpp b/ngraph/core/src/op/gather_nd.cpp index 4a0fdeb..e617912 100644 --- a/ngraph/core/src/op/gather_nd.cpp +++ b/ngraph/core/src/op/gather_nd.cpp @@ -162,8 +162,8 @@ shared_ptr op::v5::GatherND::clone_with_new_inputs(const OutputVector& new NGRAPH_SUPPRESS_DEPRECATED_START -static int PARAMS = 0; -static int INDICES = 1; +const int op::GatherND::PARAMS = 0; +const int op::GatherND::INDICES = 1; constexpr NodeTypeInfo op::GatherND::type_info;