Deprecate nGraph v0 ops and builders (#1856)
[platform/upstream/dldt.git] / ngraph / core / include / ngraph / op / equal.hpp
index d962ae4..bbb7255 100644 (file)
@@ -41,8 +41,12 @@ namespace ngraph
             /// | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
             /// | \f$\texttt{bool}[d_1,\dots,d_n]\f$ | The tensor \f$T\f$, where \f$T[i_1,\dots,i_n] = 1\text{ if }\texttt{arg0}[i_1,\dots,i_n] = \texttt{arg1}[i_1,\dots,i_n]\text{, else } 0\f$ |
             // clang-format on
-            class NGRAPH_API Equal : public util::BinaryElementwiseComparison
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::Equal instead of it.") NGRAPH_API Equal
+                : public util::BinaryElementwiseComparison
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Equal", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -65,6 +69,7 @@ namespace ngraph
 
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         } // namespace v0
 
@@ -114,6 +119,8 @@ namespace ngraph
             };
         } // namespace v1
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Equal;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }