[NGRAPH] Fix UNITY build (#2732)
authorVladislav Vinogradov <vlad.vinogradov@intel.com>
Wed, 21 Oct 2020 03:34:35 +0000 (06:34 +0300)
committerGitHub <noreply@github.com>
Wed, 21 Oct 2020 03:34:35 +0000 (06:34 +0300)
ngraph/core/include/ngraph/op/gather.hpp
ngraph/core/include/ngraph/op/gather_nd.hpp
ngraph/core/src/op/gather.cpp
ngraph/core/src/op/gather_nd.cpp

index 5d72359..9ec7481 100644 (file)
@@ -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;
             };
         }
 
index 5129f60..d5d6d0f 100644 (file)
@@ -45,6 +45,10 @@ namespace ngraph
                 void validate_and_infer_types() override;
                 virtual std::shared_ptr<Node>
                     clone_with_new_inputs(const OutputVector& new_args) const override;
+
+            private:
+                static const int PARAMS;
+                static const int INDICES;
                 NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
index b735797..ebab621 100644 (file)
@@ -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<Node>& params,
                        const Output<Node>& indices,
                        const Output<Node>& axes)
index 4a0fdeb..e617912 100644 (file)
@@ -162,8 +162,8 @@ shared_ptr<Node> 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;