Deprecate nGraph v0 ops and builders (#1856)
[platform/upstream/dldt.git] / ngraph / core / include / ngraph / op / select.hpp
index 1faf15b..06b9bfb 100644 (file)
@@ -41,8 +41,11 @@ namespace ngraph
             /// | ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
             /// | \f$E[d_1,\dots,d_n]\f$ | The tensor \f$T\f$, where \f$T[i_1,\dots,i_n] = \texttt{arg1}[i_1,\dots,i_n]\text{ if }\texttt{arg0}[i_1,\dots,i_n] \neq 0\text{, else }\texttt{arg2}[i_1,\dots,i_n]\f$ |
             // clang-format on
-            class NGRAPH_API Select : public Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::Select instead of it.") NGRAPH_API Select : public Op
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Select", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -60,6 +63,7 @@ namespace ngraph
                 virtual std::shared_ptr<Node>
                     clone_with_new_inputs(const OutputVector& new_args) const override;
                 void validate_and_infer_types() override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
 
@@ -122,6 +126,8 @@ namespace ngraph
                 AutoBroadcastSpec m_auto_broadcast;
             };
         }
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Select;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }