Deprecate nGraph v0 ops and builders (#1856)
authorIlya Churaev <ilya.churaev@intel.com>
Thu, 20 Aug 2020 09:27:14 +0000 (12:27 +0300)
committerGitHub <noreply@github.com>
Thu, 20 Aug 2020 09:27:14 +0000 (12:27 +0300)
* Deprecate nGraph v0 ops

* Fixed build

* Added deprecated defines to fix windows

204 files changed:
inference-engine/src/transformations/src/transformations/common_optimizations/nop_elimination.cpp
inference-engine/tests/functional/inference_engine/transformations/nop_elimination.cpp
ngraph/core/include/ngraph/builder/autobroadcast.hpp
ngraph/core/include/ngraph/builder/make_constant.hpp
ngraph/core/include/ngraph/builder/matmul_factory.hpp
ngraph/core/include/ngraph/builder/split.hpp
ngraph/core/include/ngraph/op/add.hpp
ngraph/core/include/ngraph/op/any.hpp
ngraph/core/include/ngraph/op/broadcast.hpp
ngraph/core/include/ngraph/op/dequantize.hpp
ngraph/core/include/ngraph/op/divide.hpp
ngraph/core/include/ngraph/op/dot.hpp
ngraph/core/include/ngraph/op/equal.hpp
ngraph/core/include/ngraph/op/gather.hpp
ngraph/core/include/ngraph/op/gather_nd.hpp
ngraph/core/include/ngraph/op/greater.hpp
ngraph/core/include/ngraph/op/greater_eq.hpp
ngraph/core/include/ngraph/op/less.hpp
ngraph/core/include/ngraph/op/less_eq.hpp
ngraph/core/include/ngraph/op/max.hpp
ngraph/core/include/ngraph/op/maximum.hpp
ngraph/core/include/ngraph/op/min.hpp
ngraph/core/include/ngraph/op/minimum.hpp
ngraph/core/include/ngraph/op/multiply.hpp
ngraph/core/include/ngraph/op/not.hpp
ngraph/core/include/ngraph/op/not_equal.hpp
ngraph/core/include/ngraph/op/one_hot.hpp
ngraph/core/include/ngraph/op/op_version_tbl.hpp
ngraph/core/include/ngraph/op/or.hpp
ngraph/core/include/ngraph/op/pad.hpp
ngraph/core/include/ngraph/op/passthrough.hpp [deleted file]
ngraph/core/include/ngraph/op/power.hpp
ngraph/core/include/ngraph/op/product.hpp
ngraph/core/include/ngraph/op/quantize.hpp
ngraph/core/include/ngraph/op/quantized_convolution.hpp
ngraph/core/include/ngraph/op/quantized_dot.hpp
ngraph/core/include/ngraph/op/replace_slice.hpp
ngraph/core/include/ngraph/op/reshape.hpp
ngraph/core/include/ngraph/op/reverse.hpp
ngraph/core/include/ngraph/op/round.hpp
ngraph/core/include/ngraph/op/scatter_add.hpp [deleted file]
ngraph/core/include/ngraph/op/select.hpp
ngraph/core/include/ngraph/op/slice.hpp
ngraph/core/include/ngraph/op/softmax.hpp
ngraph/core/include/ngraph/op/split.hpp
ngraph/core/include/ngraph/op/stop_gradient.hpp
ngraph/core/include/ngraph/op/subtract.hpp
ngraph/core/include/ngraph/op/sum.hpp
ngraph/core/include/ngraph/op/topk.hpp
ngraph/core/include/ngraph/ops.hpp
ngraph/core/reference/include/ngraph/runtime/reference/matmul.hpp
ngraph/core/reference/include/ngraph/runtime/reference/quantize.hpp
ngraph/core/reference/include/ngraph/runtime/reference/topk.hpp
ngraph/core/src/builder/autobroadcast.cpp
ngraph/core/src/builder/matmul_factory.cpp
ngraph/core/src/builder/split.cpp
ngraph/core/src/graph_util.cpp
ngraph/core/src/op/add.cpp
ngraph/core/src/op/any.cpp
ngraph/core/src/op/broadcast.cpp
ngraph/core/src/op/dequantize.cpp
ngraph/core/src/op/divide.cpp
ngraph/core/src/op/dot.cpp
ngraph/core/src/op/equal.cpp
ngraph/core/src/op/gather.cpp
ngraph/core/src/op/gather_nd.cpp
ngraph/core/src/op/greater.cpp
ngraph/core/src/op/greater_eq.cpp
ngraph/core/src/op/less.cpp
ngraph/core/src/op/less_eq.cpp
ngraph/core/src/op/max.cpp
ngraph/core/src/op/maximum.cpp
ngraph/core/src/op/min.cpp
ngraph/core/src/op/minimum.cpp
ngraph/core/src/op/multiply.cpp
ngraph/core/src/op/not.cpp
ngraph/core/src/op/not_equal.cpp
ngraph/core/src/op/one_hot.cpp
ngraph/core/src/op/or.cpp
ngraph/core/src/op/pad.cpp
ngraph/core/src/op/passthrough.cpp [deleted file]
ngraph/core/src/op/power.cpp
ngraph/core/src/op/product.cpp
ngraph/core/src/op/quantize.cpp
ngraph/core/src/op/quantized_convolution.cpp
ngraph/core/src/op/quantized_dot.cpp
ngraph/core/src/op/replace_slice.cpp
ngraph/core/src/op/reshape.cpp
ngraph/core/src/op/reverse.cpp
ngraph/core/src/op/round.cpp
ngraph/core/src/op/select.cpp
ngraph/core/src/op/slice.cpp
ngraph/core/src/op/softmax.cpp
ngraph/core/src/op/split.cpp
ngraph/core/src/op/stop_gradient.cpp
ngraph/core/src/op/subtract.cpp
ngraph/core/src/op/sum.cpp
ngraph/core/src/op/topk.cpp
ngraph/core/src/op/util/op_types.cpp
ngraph/core/src/op/util/rnn_cell_base.cpp
ngraph/core/src/pass/constant_folding_arithmetic_reduction.cpp
ngraph/core/src/pass/constant_folding_dequantize.cpp
ngraph/core/src/pass/constant_folding_logical_reduction.cpp
ngraph/core/src/pass/constant_folding_quantize.cpp
ngraph/core/src/pass/constant_folding_select.cpp
ngraph/core/src/validation_util.cpp
ngraph/frontend/onnx_import/src/op/gru.cpp
ngraph/frontend/onnx_import/src/op/lstm.cpp
ngraph/frontend/onnx_import/src/op/matmul_integer.cpp
ngraph/frontend/onnx_import/src/op/qlinear_matmul.cpp
ngraph/frontend/onnx_import/src/utils/recurrent.cpp
ngraph/test/backend/abc.in.cpp
ngraph/test/backend/add.in.cpp
ngraph/test/backend/aliased_output.in.cpp
ngraph/test/backend/any.in.cpp
ngraph/test/backend/api.in.cpp
ngraph/test/backend/auto_broadcast.in.cpp
ngraph/test/backend/broadcast.in.cpp
ngraph/test/backend/comparison.in.cpp
ngraph/test/backend/concat.in.cpp
ngraph/test/backend/constant.in.cpp
ngraph/test/backend/divide.in.cpp
ngraph/test/backend/dot.in.cpp
ngraph/test/backend/dynamic.in.cpp
ngraph/test/backend/function_name.in.cpp
ngraph/test/backend/fused_op.in.cpp
ngraph/test/backend/gather.in.cpp
ngraph/test/backend/logical_or.in.cpp
ngraph/test/backend/max.in.cpp
ngraph/test/backend/maximum.in.cpp
ngraph/test/backend/min.in.cpp
ngraph/test/backend/minimum.in.cpp
ngraph/test/backend/multiple_backends.in.cpp
ngraph/test/backend/multiple_result.in.cpp
ngraph/test/backend/multiply.in.cpp
ngraph/test/backend/node_name.in.cpp
ngraph/test/backend/not.in.cpp
ngraph/test/backend/numeric.in.cpp
ngraph/test/backend/one_hot.in.cpp
ngraph/test/backend/power.in.cpp
ngraph/test/backend/product.in.cpp
ngraph/test/backend/quantize_dequantize.in.cpp
ngraph/test/backend/quantized_convolution.in.cpp
ngraph/test/backend/quantized_dot.in.cpp
ngraph/test/backend/relu.in.cpp
ngraph/test/backend/replace_slice.in.cpp
ngraph/test/backend/reshape.in.cpp
ngraph/test/backend/reverse.in.cpp
ngraph/test/backend/round.in.cpp
ngraph/test/backend/select.in.cpp
ngraph/test/backend/slice.in.cpp
ngraph/test/backend/softmax.in.cpp
ngraph/test/backend/subtract.in.cpp
ngraph/test/backend/sum.in.cpp
ngraph/test/backend/topk.in.cpp
ngraph/test/backend/validate_call.in.cpp
ngraph/test/backend/zero_sized.in.cpp
ngraph/test/backend_debug_api.cpp
ngraph/test/build_graph.cpp
ngraph/test/builder_autobroadcast.cpp
ngraph/test/constant_folding.cpp
ngraph/test/control_dependencies.cpp
ngraph/test/copy.cpp
ngraph/test/eval.cpp
ngraph/test/input_output_assign.cpp
ngraph/test/node_input_output.cpp
ngraph/test/onnx/onnx_import.in.cpp
ngraph/test/op.cpp
ngraph/test/op_is.cpp
ngraph/test/pass_shape_relevance.cpp
ngraph/test/pattern.cpp
ngraph/test/replace_node.cpp
ngraph/test/runtime/interpreter/int_executable.hpp
ngraph/test/runtime/opset0.hpp
ngraph/test/runtime/opset0_tbl.hpp
ngraph/test/runtime/pass/dyn_elimination.cpp
ngraph/test/runtime/pass/implicit_broadcast_elimination.cpp
ngraph/test/runtime/pass/like_replacement.cpp
ngraph/test/runtime/pass/opset0_downgrade.cpp
ngraph/test/runtime/pass/opset1_upgrade.cpp
ngraph/test/specialize_function.cpp
ngraph/test/tensor.cpp
ngraph/test/type_prop/any.cpp
ngraph/test/type_prop/binary_elementwise.cpp
ngraph/test/type_prop/broadcast.cpp
ngraph/test/type_prop/dequantize.cpp
ngraph/test/type_prop/dot.cpp
ngraph/test/type_prop/gather.cpp
ngraph/test/type_prop/gather_nd.cpp
ngraph/test/type_prop/one_hot.cpp
ngraph/test/type_prop/pad.cpp
ngraph/test/type_prop/quantize.cpp
ngraph/test/type_prop/quantized_convolution.cpp
ngraph/test/type_prop/quantized_dot.cpp
ngraph/test/type_prop/replace_slice.cpp
ngraph/test/type_prop/reshape.cpp
ngraph/test/type_prop/reverse.cpp
ngraph/test/type_prop/select.cpp
ngraph/test/type_prop/slice.cpp
ngraph/test/type_prop/split.cpp
ngraph/test/type_prop/sum.cpp
ngraph/test/type_prop/top_k.cpp
ngraph/test/util.cpp
ngraph/test/util/test_tools.cpp

index 457b145..cdec6a5 100644 (file)
@@ -54,6 +54,7 @@ namespace ngraph
         ///
         /// \return     Vector of broadcasted values.
         ///
+        NGRAPH_DEPRECATED("This builder was deprecated.")
         NGRAPH_API
         OutputVector numpy_broadcast_outputs(const OutputVector& values);
 
@@ -66,6 +67,7 @@ namespace ngraph
         ///
         /// \return     Node producing values with requested shape.
         ///
+        NGRAPH_DEPRECATED("This builder was deprecated.")
         NGRAPH_API
         std::shared_ptr<Node> numpy_broadcast(const Output<Node>& value, const Shape& shape);
 
@@ -97,6 +99,7 @@ namespace ngraph
         ///   elements point to ngraph::Node objects whose output values have the same shape.
         ///
         /// \exception ngraph::builder::numpy_autobroadcast_incompatible_shapes
+        NGRAPH_DEPRECATED("This builder was deprecated.")
         NGRAPH_API
         std::pair<std::shared_ptr<Node>, std::shared_ptr<Node>>
             numpy_broadcast(const std::pair<Output<Node>, Output<Node>>& args);
@@ -116,12 +119,14 @@ namespace ngraph
         ///
         /// \exception ngraph::builder::numpy_autobroadcast_incompatible_shapes
         template <typename NodeType>
-        std::shared_ptr<NodeType>
-            make_with_numpy_broadcast(const Output<Node>& operand1_reshapeable,
-                                      const Output<Node>& operand2_reshapeable)
+        NGRAPH_DEPRECATED("This builder was deprecated.")
+        std::shared_ptr<NodeType> make_with_numpy_broadcast(
+            const Output<Node>& operand1_reshapeable, const Output<Node>& operand2_reshapeable)
         {
+            NGRAPH_SUPPRESS_DEPRECATED_START
             auto shaped_op1_op2 = numpy_broadcast({operand1_reshapeable, operand2_reshapeable});
             return std::make_shared<NodeType>(shaped_op1_op2.first, shaped_op1_op2.second);
+            NGRAPH_SUPPRESS_DEPRECATED_END
         }
 
         /// Create a new \p NodeType node, and any additional nodes required to simulate NumPy-style
@@ -143,13 +148,16 @@ namespace ngraph
         ///
         /// \exception ngraph::builder::numpy_autobroadcast_incompatible_shapes
         template <typename NodeType>
+        NGRAPH_DEPRECATED("This builder was deprecated.")
         std::shared_ptr<Node> make_with_numpy_broadcast(const Output<Node>& operand1,
                                                         const Output<Node>& operand2_reshapeable,
                                                         const Output<Node>& operand3_reshapeable)
         {
+            NGRAPH_SUPPRESS_DEPRECATED_START
             auto shaped_op2_op3 = numpy_broadcast({operand2_reshapeable, operand3_reshapeable});
             return std::make_shared<NodeType>(
                 operand1, shaped_op2_op3.first, shaped_op2_op3.second);
+            NGRAPH_SUPPRESS_DEPRECATED_END
         }
 
         /// \brief      Broadcast shape of two nodes to make them compatible for a matrix
@@ -168,6 +176,7 @@ namespace ngraph
         ///
         /// \return     The vector containing both outputs broadcasted.
         ///
+        NGRAPH_DEPRECATED("This builder was deprecated.")
         NGRAPH_API
         OutputVector numpy_broadcast_for_matmul_operation(const Output<Node>& left,
                                                           const Output<Node>& right);
@@ -179,6 +188,7 @@ namespace ngraph
         /// \param axis Index starting to align
         ///
         /// \return pdpd-style broadcasted list of nodes.
+        NGRAPH_DEPRECATED("This builder was deprecated.")
         NGRAPH_API
         OutputVector pdpd_broadcast(const OutputVector& inputs, int64_t axis);
 
@@ -196,6 +206,7 @@ namespace ngraph
         ///                          matches the desired new shape.
         ///
         /// \return The indices of added axes.
+        NGRAPH_DEPRECATED("This builder was deprecated.")
         NGRAPH_API
         AxisSet calculate_broadcast_axes(const Shape& output_shape,
                                          const Shape& input_shape,
@@ -217,6 +228,7 @@ namespace ngraph
         /// \return     A pair that contains the target shape as its first object and a vector of
         ///             padded input shapes ready to be broadcasted as the second object
         ///
+        NGRAPH_DEPRECATED("This builder was deprecated.")
         NGRAPH_API
         std::pair<Shape, std::vector<Shape>>
             get_numpy_broadcast_shapes(const std::vector<Shape>& input_shapes);
@@ -235,27 +247,36 @@ namespace ngraph
         /// \param input_shape  The shape of input tensor.
         ///
         /// \return             The indices of added axes.
+        NGRAPH_DEPRECATED("This builder was deprecated.")
         inline AxisSet calculate_broadcast_axes(const Shape& output_shape, const Shape& input_shape)
         {
+            NGRAPH_SUPPRESS_DEPRECATED_START
             return calculate_broadcast_axes(
                 output_shape, input_shape, output_shape.size() - input_shape.size());
+            NGRAPH_SUPPRESS_DEPRECATED_END
         }
 
+        NGRAPH_DEPRECATED("This builder was deprecated.")
         inline std::shared_ptr<Node> make_broadcast_node(const Output<Node>& output,
                                                          Shape new_shape)
         {
+            NGRAPH_SUPPRESS_DEPRECATED_START
             return std::make_shared<op::Broadcast>(
                 output, new_shape, calculate_broadcast_axes(new_shape, output.get_shape()));
+            NGRAPH_SUPPRESS_DEPRECATED_END
         }
 
+        NGRAPH_DEPRECATED("This builder was deprecated.")
         inline std::shared_ptr<Node> make_broadcast_node(const Output<Node>& value,
                                                          const Shape& new_shape,
                                                          std::size_t start_match_axis)
         {
+            NGRAPH_SUPPRESS_DEPRECATED_START
             return std::make_shared<op::Broadcast>(
                 value,
                 new_shape,
                 calculate_broadcast_axes(new_shape, value.get_shape(), start_match_axis));
+            NGRAPH_SUPPRESS_DEPRECATED_END
         }
 
         namespace opset1
index 15a8be8..0132e99 100644 (file)
@@ -16,6 +16,7 @@
 
 #pragma once
 
+#include "autobroadcast.hpp"
 #include "ngraph/node.hpp"
 #include "ngraph/op/broadcast.hpp"
 #include "ngraph/op/constant.hpp"
@@ -110,7 +111,7 @@ namespace ngraph
                 {
                     axes.insert(i);
                 }
-                val = std::make_shared<ngraph::op::Broadcast>(val, shape, axes);
+                val = builder::opset1::make_broadcast(val, shape, axes).get_node_shared_ptr();
             }
 
             return val->add_provenance_group_members_above({});
index 43bcaea..4e78082 100644 (file)
@@ -22,13 +22,15 @@ namespace ngraph
 {
     namespace builder
     {
+        NGRAPH_SUPPRESS_DEPRECATED_START
+
         /// \brief  Factory class which generates an nGraph sub-graph performing MatMul operation.
         ///
         /// This default implementation `MatmulFactory` creates a `MatMul` operation for
         /// floating-point data.
         /// Subclasses: `QLinearMatmulFactory` and `MatmulIntegerFactory` implement quantized
         /// versions.
-        class NGRAPH_API MatmulFactory
+        class NGRAPH_DEPRECATED("This builder was deprecated.") NGRAPH_API MatmulFactory
         {
         public:
             explicit MatmulFactory(const OutputVector& inputs)
@@ -58,7 +60,8 @@ namespace ngraph
 
         /// \brief  Factory class which generates an nGraph sub-graph based on an ONNX QLinearMatMul
         /// operation.
-        class NGRAPH_API QLinearMatmulFactory : public MatmulFactory
+        class NGRAPH_DEPRECATED("This builder was deprecated.") NGRAPH_API QLinearMatmulFactory
+            : public MatmulFactory
         {
         public:
             explicit QLinearMatmulFactory(const OutputVector& inputs)
@@ -73,7 +76,8 @@ namespace ngraph
 
         /// \brief  Factory class which generates an nGraph sub-graph based on an ONNX MatMulInteger
         /// operation.
-        class NGRAPH_API MatmulIntegerFactory : public MatmulFactory
+        class NGRAPH_DEPRECATED("This builder was deprecated.") NGRAPH_API MatmulIntegerFactory
+            : public MatmulFactory
         {
         public:
             explicit MatmulIntegerFactory(const OutputVector& inputs)
@@ -84,5 +88,7 @@ namespace ngraph
         protected:
             Output<Node> make_dot(const Output<Node>& left, const Output<Node>& right) override;
         };
+
+        NGRAPH_SUPPRESS_DEPRECATED_END
     } // namespace builder
 } // namespace ngraph
index e2bce38..b3aecad 100644 (file)
@@ -31,6 +31,7 @@ namespace ngraph
         ///
         /// \return     The vector containing multiple nodes we split input node into.
         ///
+        NGRAPH_DEPRECATED("This builder was deprecated.")
         OutputVector split(const Output<Node>& value,
                            const std::vector<size_t>& length_parts,
                            size_t axis = 0);
@@ -49,6 +50,7 @@ namespace ngraph
         ///
         /// \return     The vector containing multiple outputs we split input node into.
         ///
+        NGRAPH_DEPRECATED("This builder was deprecated.")
         NGRAPH_API
         OutputVector split(const Output<Node>& value, size_t split_parts, int axis = 0);
 
index b6a6d6d..73a4824 100644 (file)
@@ -28,8 +28,11 @@ namespace ngraph
         {
             /// \brief Elementwise addition operation.
             ///
-            class NGRAPH_API Add : public util::BinaryElementwiseArithmetic
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. Use v1::Add instead of it.")
+                NGRAPH_API Add : public util::BinaryElementwiseArithmetic
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Add", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -59,6 +62,7 @@ namespace ngraph
                 bool visit_attributes(AttributeVisitor& visitor) override;
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         } // namespace v0
 
@@ -102,9 +106,12 @@ namespace ngraph
             };
 
         } // namespace v1
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Add;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     } // namespace op
 
+    NGRAPH_DEPRECATED("This operator was deprecated and will be removed with v0 operation.")
     NGRAPH_API
     std::shared_ptr<Node> operator+(const Output<Node>& arg0, const Output<Node>& arg1);
 } // namespace ngraph
index cc99597..d1bb405 100644 (file)
@@ -25,8 +25,11 @@ namespace ngraph
         namespace v0
         {
             /// \brief Logical "any" reduction operation.
-            class NGRAPH_API Any : public util::LogicalReduction
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. Please don't use it.")
+                NGRAPH_API Any : public util::LogicalReduction
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Any", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -48,8 +51,11 @@ namespace ngraph
                 bool visit_attributes(AttributeVisitor& visitor) override { return true; }
                 /// \return The default value for Any.
                 virtual std::shared_ptr<Node> get_default_value() const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Any;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index 42703a7..f701a14 100644 (file)
@@ -148,9 +148,12 @@ namespace ngraph
 
         namespace v0
         {
+            NGRAPH_SUPPRESS_DEPRECATED_START
             /// \brief Operation which "adds" axes to an input tensor, replicating elements from the
             ///        input as needed along the new axes.
-            class NGRAPH_API Broadcast : public Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::Broadcast instead of it.") NGRAPH_API Broadcast : public Op
             {
             public:
                 static constexpr NodeTypeInfo type_info{"Broadcast", 0};
@@ -195,7 +198,9 @@ namespace ngraph
             };
 
             /// \brief Broadcast arg to the same shape as like_arg.
-            class NGRAPH_API BroadcastLike : public v0::Broadcast
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. Please don't use it.")
+                NGRAPH_API BroadcastLike : public v0::Broadcast
             {
             public:
                 static constexpr NodeTypeInfo type_info{"BroadcastLike", 0};
@@ -231,9 +236,12 @@ namespace ngraph
             protected:
                 AxisSet m_initial_broadcast_axes;
             };
+            NGRAPH_SUPPRESS_DEPRECATED_END
         } // namespace v0
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Broadcast;
         using v0::BroadcastLike;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index 3f3040b..32e24ee 100644 (file)
@@ -30,8 +30,11 @@ namespace ngraph
             ///        Maps quantized input (q) to real output (r) using scale (s) and zero point
             ///        (z):
             ///        r = (q - o) * s
-            class NGRAPH_API Dequantize : public ngraph::op::Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. Please do not use it.")
+                NGRAPH_API Dequantize : public ngraph::op::Op
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Dequantize", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -62,8 +65,11 @@ namespace ngraph
             private:
                 element::Type m_type;
                 AxisSet m_axes;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Dequantize;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index 7b1ac75..36e6aaa 100644 (file)
@@ -25,8 +25,12 @@ namespace ngraph
         namespace v0
         {
             /// \brief Elementwise division operation.
-            class NGRAPH_API Divide : public util::BinaryElementwiseArithmetic
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::Divide instead of it.") NGRAPH_API Divide
+                : public util::BinaryElementwiseArithmetic
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Divide", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -65,6 +69,7 @@ namespace ngraph
 
             protected:
                 bool m_pythondiv{true};
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         } // namespace v0
 
@@ -117,9 +122,12 @@ namespace ngraph
             };
         } // namespace v1
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Divide;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     } // namespace op
 
+    NGRAPH_DEPRECATED("This operator was deprecated and will be removed with v0 operation.")
     NGRAPH_API
     std::shared_ptr<Node> operator/(const Output<Node>& arg0, const Output<Node>& arg1);
 } // namespace ngraph
index a049584..6636191 100644 (file)
@@ -29,8 +29,11 @@ namespace ngraph
             /// \brief Generalized dot product operation, including scalar-tensor product,
             /// matrix-vector
             ///        product, and matrix multiplication.
-            class NGRAPH_API Dot : public Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. Please do not use it.")
+                NGRAPH_API Dot : public Op
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Dot", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -89,8 +92,11 @@ namespace ngraph
             protected:
                 size_t m_reduction_axes_count;
                 bool m_has_reduction_axes_count;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Dot;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
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
     }
 }
index bf37112..5d72359 100644 (file)
@@ -25,8 +25,11 @@ namespace ngraph
         namespace v0
         {
             /// \brief Gather slices from axis of params according to indices
-            class NGRAPH_API Gather : public Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::Gather instead of it.") NGRAPH_API Gather : public Op
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Gather", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -47,6 +50,7 @@ namespace ngraph
 
             protected:
                 size_t m_axis;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
 
@@ -81,6 +85,8 @@ namespace ngraph
         }
 
         // latest stable opset version
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Gather;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index f905af0..adc9dea 100644 (file)
@@ -25,8 +25,11 @@ namespace ngraph
         namespace v0
         {
             /// \brief Gather slices from params with shapes given by indices
-            class NGRAPH_API GatherND : public Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. Please do not use it.")
+                NGRAPH_API GatherND : public Op
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"GatherND", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -42,8 +45,11 @@ namespace ngraph
                 void validate_and_infer_types() override;
                 virtual std::shared_ptr<Node>
                     clone_with_new_inputs(const OutputVector& new_args) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::GatherND;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index c81eebd..8cc0330 100644 (file)
@@ -25,8 +25,12 @@ namespace ngraph
         namespace v0
         {
             /// \brief Elementwise greater-than operation.
-            class NGRAPH_API Greater : public util::BinaryElementwiseComparison
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::Greater instead of it.") NGRAPH_API Greater
+                : public util::BinaryElementwiseComparison
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Greater", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -48,6 +52,7 @@ namespace ngraph
                     clone_with_new_inputs(const OutputVector& new_args) const override;
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         } // namespace v0
 
@@ -80,6 +85,8 @@ namespace ngraph
             };
         } // namespace v1
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Greater;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index 6c52dcc..548463d 100644 (file)
@@ -25,8 +25,12 @@ namespace ngraph
         namespace v0
         {
             /// \brief Elementwise greater-than-or-equal operation.
-            class NGRAPH_API GreaterEq : public util::BinaryElementwiseComparison
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::GreaterEqual instead of it.") NGRAPH_API GreaterEq
+                : public util::BinaryElementwiseComparison
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"GreaterEq", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -48,6 +52,7 @@ namespace ngraph
                     clone_with_new_inputs(const OutputVector& new_args) const override;
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         } // namespace v0
 
@@ -78,11 +83,10 @@ namespace ngraph
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
             };
-
-            // DO NOT USE. Will be removed once users switch to GreaterEqual
-            using GreaterEq = GreaterEqual;
         } // namespace v1
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::GreaterEq;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index 6105c5a..56b5e7f 100644 (file)
@@ -25,8 +25,12 @@ namespace ngraph
         namespace v0
         {
             /// \brief Elementwise less-than operation.
-            class NGRAPH_API Less : public util::BinaryElementwiseComparison
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::Less instead of it.") NGRAPH_API Less
+                : public util::BinaryElementwiseComparison
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Less", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -48,6 +52,7 @@ namespace ngraph
                     clone_with_new_inputs(const OutputVector& new_args) const override;
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         } // namespace v0
 
@@ -80,6 +85,8 @@ namespace ngraph
             };
         } // namespace v1
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Less;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index 94afc11..999d972 100644 (file)
@@ -55,8 +55,12 @@ namespace ngraph
         namespace v0
         {
             /// \brief Elementwise less-than-or-equal operation.
-            class NGRAPH_API LessEq : public util::BinaryElementwiseComparison
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::LessEqual instead of it.") NGRAPH_API LessEq
+                : public util::BinaryElementwiseComparison
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"LessEq", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -78,9 +82,12 @@ namespace ngraph
                     clone_with_new_inputs(const OutputVector& new_args) const override;
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         } // namespace v0
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::LessEq;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     } // namespace op
 } // namespace ngraph
index 189e975..c2d13ef 100644 (file)
@@ -26,8 +26,12 @@ namespace ngraph
         namespace v0
         {
             /// \brief Max-reduction operation.
-            class NGRAPH_API Max : public util::ArithmeticReduction
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::ReduceMax instead of it.") NGRAPH_API Max
+                : public util::ArithmeticReduction
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Max", 0};
 
@@ -55,6 +59,7 @@ namespace ngraph
 
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
 
@@ -84,6 +89,8 @@ namespace ngraph
             };
         }
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Max;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index faa9bff..438e7a0 100644 (file)
@@ -25,8 +25,12 @@ namespace ngraph
         namespace v0
         {
             /// \brief Elementwise maximum operation.
-            class NGRAPH_API Maximum : public util::BinaryElementwiseArithmetic
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::Maximum instead of it.") NGRAPH_API Maximum
+                : public util::BinaryElementwiseArithmetic
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Maximum", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -49,6 +53,7 @@ namespace ngraph
 
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         } // namespace v0
 
@@ -84,6 +89,8 @@ namespace ngraph
             };
         } // namespace v1
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Maximum;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index b373f8a..6a111bf 100644 (file)
@@ -26,8 +26,12 @@ namespace ngraph
         namespace v0
         {
             /// \brief Min-reduction operation.
-            class NGRAPH_API Min : public util::ArithmeticReduction
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::ReduceMin instead of it.") NGRAPH_API Min
+                : public util::ArithmeticReduction
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Min", 0};
 
@@ -55,6 +59,7 @@ namespace ngraph
 
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
 
@@ -84,6 +89,8 @@ namespace ngraph
             };
         }
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Min;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index 174ca24..3611fa0 100644 (file)
@@ -25,8 +25,12 @@ namespace ngraph
         namespace v0
         {
             /// \brief Elementwise minimum operation.
-            class NGRAPH_API Minimum : public util::BinaryElementwiseArithmetic
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::Minimum instead of it.") NGRAPH_API Minimum
+                : public util::BinaryElementwiseArithmetic
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Minimum", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -49,6 +53,7 @@ namespace ngraph
 
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         } // namespace v0
 
@@ -84,6 +89,8 @@ namespace ngraph
             };
         } // namespace v1
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Minimum;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index 8d36b60..b685ade 100644 (file)
@@ -25,8 +25,12 @@ namespace ngraph
         namespace v0
         {
             /// \brief Elementwise multiplication operation.
-            class NGRAPH_API Multiply : public util::BinaryElementwiseArithmetic
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::Multiply instead of it.") NGRAPH_API Multiply
+                : public util::BinaryElementwiseArithmetic
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Multiply", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -49,6 +53,7 @@ namespace ngraph
 
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         } // namespace v0
 
@@ -84,9 +89,12 @@ namespace ngraph
             };
         } // namespace v1
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Multiply;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     } // namespace op
 
+    NGRAPH_DEPRECATED("This operator was deprecated and will be removed with v0 operation.")
     NGRAPH_API
     std::shared_ptr<Node> operator*(const Output<Node>& arg0, const Output<Node>& arg1);
 } // namespace ngraph
index 63f3283..be33b16 100644 (file)
@@ -48,8 +48,11 @@ namespace ngraph
         namespace v0
         {
             /// \brief Elementwise logical negation operation.
-            class NGRAPH_API Not : public Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::LogicalNot instead of it.") NGRAPH_API Not : public Op
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Not", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -66,9 +69,12 @@ namespace ngraph
                     clone_with_new_inputs(const OutputVector& new_args) const override;
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Not;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     } // namespace op
 } // namespace ngraph
index eab9120..19ccd63 100644 (file)
@@ -25,8 +25,12 @@ namespace ngraph
         namespace v0
         {
             /// \brief Elementwise not-equal operation.
-            class NGRAPH_API NotEqual : public util::BinaryElementwiseComparison
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::NotEqual instead of it.") NGRAPH_API NotEqual
+                : public util::BinaryElementwiseComparison
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"NotEqual", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -49,6 +53,7 @@ namespace ngraph
 
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         } // namespace v0
 
@@ -82,6 +87,8 @@ namespace ngraph
             };
         } // namespace v1
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::NotEqual;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index 689f372..ef668e8 100644 (file)
@@ -46,8 +46,11 @@ namespace ngraph
             /// | ---------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
             /// | \f$E[d_1,\dots,d_n]\f$ | The tensor \f$T'\f$, where \f$T'[i_1,\dots,i_{m-1},i_m,i_{m+1},\dots,i_n] = 1\f$ if \f$T[i_1,\dots,i_{m-1},i_{m+1},\dots,i_n] = i_m\f$, else \f$0\f$. However, \f$T'\f$ is undefined if any non-integral value or any out-of-bounds value is detected in the input tensor. |
             // clang-format on
-            class NGRAPH_API OneHot : public Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::OneHot instead of it.") NGRAPH_API OneHot : public Op
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"OneHot", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -71,6 +74,7 @@ namespace ngraph
             protected:
                 PartialShape m_shape;
                 size_t m_one_hot_axis;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
         namespace v1
@@ -111,6 +115,8 @@ namespace ngraph
             };
         }
         // default opset version
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::OneHot;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index d4babea..2730563 100644 (file)
@@ -26,6 +26,8 @@
 #define NGRAPH_OP(NAME, NAMESPACE, VERSION)
 #endif
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 NGRAPH_OP(Abs, ngraph::op::v0, 0)
 NGRAPH_OP(Acos, ngraph::op::v0, 0)
 NGRAPH_OP(Acosh, ngraph::op::v3, 3)
@@ -132,7 +134,6 @@ NGRAPH_OP(PSROIPooling, ngraph::op::v0, 0)
 NGRAPH_OP(Pad, ngraph::op::v0, 0)
 NGRAPH_OP(Pad, ngraph::op::v1, 1)
 NGRAPH_OP(Parameter, ngraph::op::v0, 0)
-NGRAPH_OP(Passthrough, ngraph::op::v0, 0)
 NGRAPH_OP(Power, ngraph::op::v0, 0)
 NGRAPH_OP(Power, ngraph::op::v1, 1)
 NGRAPH_OP(PriorBox, ngraph::op::v0, 0)
@@ -203,3 +204,5 @@ NGRAPH_OP(VariadicSplit, ngraph::op::v1, 1)
 NGRAPH_OP(Xor, ngraph::op::v0, 0)
 NGRAPH_OP(Assign, ngraph::op::v3, 3)
 NGRAPH_OP(ReadValue, ngraph::op::v3, 3)
+
+NGRAPH_SUPPRESS_DEPRECATED_END
index 4f3abac..5c932e1 100644 (file)
@@ -59,8 +59,12 @@ namespace ngraph
         {
             /// \brief Elementwise logical-or operation.
             ///
-            class NGRAPH_API Or : public util::BinaryElementwiseLogical
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::LogicalOr instead of it.") NGRAPH_API Or
+                : public util::BinaryElementwiseLogical
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Or", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -84,9 +88,12 @@ namespace ngraph
 
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         } // namespace v0
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Or;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     } // namespace op
 } // namespace ngraph
index 099e1ba..00f9458 100644 (file)
@@ -27,8 +27,11 @@ namespace ngraph
         namespace v0
         {
             /// \brief Generic padding operation.
-            class NGRAPH_API Pad : public Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. Use v1::Pad instead of it.")
+                NGRAPH_API Pad : public Op
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Pad", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -85,6 +88,7 @@ namespace ngraph
                 CoordinateDiff m_padding_above;
                 Shape m_padding_interior_fake; // LEGACY: This is all zeros.
                 PadMode m_pad_mode;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
 
@@ -157,6 +161,8 @@ namespace ngraph
         }
 
         // latest stable opset version
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Pad;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
diff --git a/ngraph/core/include/ngraph/op/passthrough.hpp b/ngraph/core/include/ngraph/op/passthrough.hpp
deleted file mode 100644 (file)
index 743c381..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-//*****************************************************************************
-// Copyright 2017-2020 Intel Corporation
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//*****************************************************************************
-
-#pragma once
-
-#include <string>
-#include <tuple>
-#include <vector>
-
-#include "ngraph/op/op.hpp"
-
-namespace ngraph
-{
-    namespace op
-    {
-        namespace v0
-        {
-            /// An op directly representing backend-specific code.
-            ///
-            /// N.B. Not all backends support all operation languages; a
-            /// given backend might only support a given passthrough
-            /// operation language in certain modes.
-            class Passthrough;
-        }
-        using v0::Passthrough;
-    }
-}
-
-class NGRAPH_API ngraph::op::v0::Passthrough final : public Op
-{
-public:
-    static constexpr NodeTypeInfo type_info{"Passthrough", 0};
-    const NodeTypeInfo& get_type_info() const override { return type_info; }
-    Passthrough() = default;
-
-    Passthrough(const std::string& logical_type, // aka "What this operation is doing"
-                const std::string& language,     // The language the implementation is written in
-                const std::string& function,     // The operation implementation
-                const OutputVector& args,
-                std::vector<std::tuple<element::Type, PartialShape>> outputs);
-
-    void validate_and_infer_types() final;
-
-    std::shared_ptr<Node> clone_with_new_inputs(const OutputVector& new_args) const final;
-
-    const std::string& logical_type() const { return m_logical_type; }
-    const std::string& language() const { return m_language; }
-    const std::string& function() const { return m_function; }
-    const std::vector<std::tuple<element::Type, PartialShape>>& output_shapes() const
-    {
-        return m_output_shapes;
-    }
-
-private:
-    std::string m_logical_type;
-    std::string m_language;
-    std::string m_function;
-    std::vector<std::tuple<element::Type, PartialShape>> m_output_shapes;
-};
index dd3cc87..6eecca8 100644 (file)
@@ -40,8 +40,12 @@ namespace ngraph
             /// | ---------------------- | -------------------------------------------------------------------------------------------------------------- |
             /// | \f$N[d_1,\dots,d_n]\f$ | The tensor \f$T\f$, where \f$T[i_1,\dots,i_n] = \texttt{arg0}[i_1,\dots,i_n]^{\texttt{arg1}[i_1,\dots,i_n]}\f$ |
             // clang-format on
-            class NGRAPH_API Power : public util::BinaryElementwiseArithmetic
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::Power instead of it.") NGRAPH_API Power
+                : public util::BinaryElementwiseArithmetic
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Power", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -62,6 +66,7 @@ namespace ngraph
                     clone_with_new_inputs(const OutputVector& new_args) const override;
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         } // namespace v0
 
@@ -110,6 +115,8 @@ namespace ngraph
             };
         } // namespace v1
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Power;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index cf7d711..e560f1d 100644 (file)
@@ -27,8 +27,12 @@ namespace ngraph
             /// \brief Product reduction operation.
             ///
             /// Reduces the tensor, eliminating the specified reduction axes by taking the product.
-            class NGRAPH_API Product : public util::ArithmeticReduction
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::ReduceProd instead of it.") NGRAPH_API Product
+                : public util::ArithmeticReduction
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Product", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -53,9 +57,12 @@ namespace ngraph
 
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
         // default opset version
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Product;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index f0bc93f..5afca02 100644 (file)
@@ -30,8 +30,11 @@ namespace ngraph
             ///        Maps real input (r) to quantized output (q) using scale (s), zero point (z)
             ///        and
             ///        round mode: q = ROUND(r / s) + o
-            class NGRAPH_API Quantize : public ngraph::op::Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. Please do not use it.")
+                NGRAPH_API Quantize : public ngraph::op::Op
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Quantize", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -107,8 +110,11 @@ namespace ngraph
                 ngraph::element::Type m_type;
                 ngraph::AxisSet m_axes;
                 RoundMode m_round_mode;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Quantize;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index 486cbf1..3591336 100644 (file)
@@ -25,8 +25,11 @@ namespace ngraph
     {
         namespace v0
         {
-            class NGRAPH_API QuantizedConvolution : public Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. Please do not use it.")
+                NGRAPH_API QuantizedConvolution : public Op
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"QuantizedConvolution", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -103,8 +106,11 @@ namespace ngraph
                 ngraph::AxisSet m_input_axes;
                 ngraph::AxisSet m_filter_axes;
                 ngraph::AxisSet m_output_axes;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::QuantizedConvolution;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index b04f1b0..a70e155 100644 (file)
@@ -24,8 +24,11 @@ namespace ngraph
     {
         namespace v0
         {
-            class NGRAPH_API QuantizedDot : public Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. Please do not use it.")
+                NGRAPH_API QuantizedDot : public Op
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"QuantizedDot", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -80,8 +83,11 @@ namespace ngraph
                 ngraph::AxisSet m_input0_axes;
                 ngraph::AxisSet m_input1_axes;
                 ngraph::AxisSet m_output_axes;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::QuantizedDot;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index 2b85536..aefa176 100644 (file)
@@ -52,8 +52,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}[j_1,\dots,j_n]\f$ if \f$j_1,\dots,j_n\f$ is in bounds for `arg1` and for all \f$m\f$, \f$i_m = l_m + j_m s_m\f$, otherwise \f$\texttt{arg0}[i_1,\dots,i_n]\f$. |
             // clang-format on
-            class NGRAPH_API ReplaceSlice : public Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. Please do not use it.")
+                NGRAPH_API ReplaceSlice : public Op
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"ReplaceSlice", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -109,8 +112,11 @@ namespace ngraph
                 Coordinate m_lower_bounds;
                 Coordinate m_upper_bounds;
                 Strides m_strides;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::ReplaceSlice;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index f6b2b17..442036e 100644 (file)
@@ -65,8 +65,11 @@ namespace ngraph
         /// | ------------------------ | ------------------------------------------------------------------------------------------------------ |
         /// | \f$E[d'_1,\dots,d'_m]\f$ | The tensor \f$T\f$, where \f$T\f$ is the input tensor with its elements rearranged as described above. |
             // clang-format on
-            class NGRAPH_API Reshape : public Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::Reshape instead of it.") NGRAPH_API Reshape : public Op
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Reshape", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -108,6 +111,7 @@ namespace ngraph
                 AxisVector m_input_order;
                 Shape m_output_shape;
                 bool m_is_transpose{false};
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
 
@@ -154,6 +158,8 @@ namespace ngraph
                 bool m_special_zero;
             };
         }
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Reshape;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index 1461079..221999f 100644 (file)
@@ -48,8 +48,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{arg}[j_1,\dots,j_n]\f$ and \f$j_k = d_k - i_k - 1\f$ if axis \f$k\f$ is in the reverse set; else \f$j_k = i_k\f$. |
             // clang-format on
-            class NGRAPH_API Reverse : public Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::Reverse instead of it.") NGRAPH_API Reverse : public Op
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Reverse", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -76,6 +79,7 @@ namespace ngraph
 
             protected:
                 AxisSet m_reversed_axes;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
 
@@ -133,7 +137,9 @@ namespace ngraph
             };
         }
         // default opset version
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Reverse;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 
     NGRAPH_API
index 4215b1a..8e37ae1 100644 (file)
@@ -25,8 +25,11 @@ namespace ngraph
         namespace v0
         {
             /// \brief Elementwise round operation.
-            class NGRAPH_API Round : public util::UnaryElementwiseArithmetic
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. Please do not use it.")
+                NGRAPH_API Round : public util::UnaryElementwiseArithmetic
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Round", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -45,8 +48,11 @@ namespace ngraph
 
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Round;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
diff --git a/ngraph/core/include/ngraph/op/scatter_add.hpp b/ngraph/core/include/ngraph/op/scatter_add.hpp
deleted file mode 100644 (file)
index 2c6b65e..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-//*****************************************************************************
-// Copyright 2017-2020 Intel Corporation
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//*****************************************************************************
-
-#pragma once
-
-#include "ngraph/op/op.hpp"
-#include "ngraph/op/util/scatter_base.hpp"
-
-namespace ngraph
-{
-    namespace op
-    {
-        namespace v0
-        {
-            /// \brief Add updates to slices from inputs addressed by indices
-            class NGRAPH_API ScatterAdd : public Op
-            {
-            public:
-                static constexpr NodeTypeInfo type_info{"ScatterAdd", 0};
-                const NodeTypeInfo& get_type_info() const override { return type_info; }
-                ScatterAdd() = default;
-                /// \param inputs Tensor
-                /// \param indices Index tensor: Data type must be `element::i32` or `element::i64`
-                /// \param updates Tensor: Must have same type as inputs
-                ScatterAdd(const Output<Node>& inputs,
-                           const Output<Node>& indices,
-                           const Output<Node>& updates)
-                    : Op({inputs, indices, updates})
-                {
-                    constructor_validate_and_infer_types();
-                }
-
-                void validate_and_infer_types() override;
-                virtual std::shared_ptr<Node>
-                    clone_with_new_inputs(const OutputVector& new_args) const override;
-            };
-        }
-
-        namespace v3
-        {
-            ///
-            /// \brief      Add updates to slices from inputs addressed by indices
-            ///
-            class NGRAPH_API ScatterAdd : public util::ScatterBase
-            {
-            public:
-                static constexpr NodeTypeInfo type_info{"ScatterAdd", 3};
-                const NodeTypeInfo& get_type_info() const override { return type_info; }
-                ScatterAdd() = default;
-
-                ///
-                /// \brief      Constructs ScatterAdd object.
-                ///
-                /// \param      data     The input tensor to be updated.
-                /// \param      indices  The tensor with indexes which will be updated.
-                /// \param      updates  The tensor with update values.
-                /// \param[in]  axis     The axis at which elements will be updated.
-                ///
-                ScatterAdd(const Output<Node>& data,
-                           const Output<Node>& indices,
-                           const Output<Node>& updates,
-                           const Output<Node>& axis);
-
-                virtual std::shared_ptr<Node>
-                    clone_with_new_inputs(const OutputVector& inputs) const override;
-            };
-        }
-        using v0::ScatterAdd;
-    }
-}
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
     }
 }
index 22720a7..0cb0104 100644 (file)
@@ -28,8 +28,11 @@ namespace ngraph
         {
             /// \brief Takes a slice of an input tensor, i.e., the sub-tensor that resides within a
             ///        bounding box, optionally with stride.
-            class NGRAPH_API Slice : public Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. Please do not use it.")
+                NGRAPH_API Slice : public Op
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Slice", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -75,9 +78,12 @@ namespace ngraph
                 Coordinate m_lower_bounds;
                 Coordinate m_upper_bounds;
                 Strides m_strides;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
         // default opset version
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Slice;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index 00cfb69..fc5f652 100644 (file)
@@ -26,8 +26,11 @@ namespace ngraph
         {
             /// \brief Softmax operation.
             ///
-            class NGRAPH_API Softmax : public Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::Softmax instead of it.") NGRAPH_API Softmax : public Op
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Softmax", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -63,6 +66,7 @@ namespace ngraph
 
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
 
@@ -105,6 +109,8 @@ namespace ngraph
         }
 
         // default opset version
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Softmax;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index 7387987..a0cd41e 100644 (file)
@@ -31,8 +31,11 @@ namespace ngraph
         namespace v0
         {
             /// \brief Splits the input tensor into a list of smaller tensors ("pieces")
-            class NGRAPH_API Split : public ngraph::op::util::FusedOp
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::Split instead of it.") NGRAPH_API Split : public ngraph::op::util::FusedOp
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Split", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -76,6 +79,7 @@ namespace ngraph
                 size_t m_num_split;
                 /// contains lengths of chunks that the input tensor will be split into
                 std::vector<size_t> m_splits;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
 
@@ -112,7 +116,9 @@ namespace ngraph
             };
         }
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Split;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
 
index 54a03f4..057aa9a 100644 (file)
@@ -25,8 +25,11 @@ namespace ngraph
         namespace v0
         {
             /// \brief create StopGrdient op
-            class NGRAPH_API StopGradient : public util::UnaryElementwiseArithmetic
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. Please do not use it.")
+                NGRAPH_API StopGradient : public util::UnaryElementwiseArithmetic
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"StopGradient", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -38,8 +41,11 @@ namespace ngraph
 
                 virtual std::shared_ptr<Node>
                     clone_with_new_inputs(const OutputVector& new_args) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::StopGradient;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index a5335e7..5e5a0f1 100644 (file)
@@ -25,8 +25,12 @@ namespace ngraph
         namespace v0
         {
             /// \brief Elementwise subtraction operation.
-            class NGRAPH_API Subtract : public util::BinaryElementwiseArithmetic
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::Subtract instead of it.") NGRAPH_API Subtract
+                : public util::BinaryElementwiseArithmetic
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{"Subtract", 0};
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -49,6 +53,7 @@ namespace ngraph
 
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
 
         } // namespace v0
@@ -83,9 +88,12 @@ namespace ngraph
             };
         } // namespace v1
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Subtract;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     } // namespace op
 
+    NGRAPH_DEPRECATED("This operator was deprecated and will be removed with v0 operation.")
     NGRAPH_API
     std::shared_ptr<ngraph::Node> operator-(const Output<ngraph::Node> arg0,
                                             const Output<ngraph::Node> arg1);
index f05b5e5..8df0758 100644 (file)
@@ -74,8 +74,10 @@ namespace ngraph
             /// | ----------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
             /// | \f$N[\textit{delete}(A,d_1,\dots,d_n)]\f$ | The tensor \f$T\f$, where \f$T\f$ is the input tensor with the `reduction_axes` \f$A\f$ eliminated by summation. |
             // clang-format off
-            class NGRAPH_API Sum : public util::ArithmeticReduction
+            class NGRAPH_DEPRECATED("This operation is deprecated and will be removed soon. "
+                                    "Use v1::ReduceSum instead of it.") NGRAPH_API Sum : public util::ArithmeticReduction
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 static constexpr NodeTypeInfo type_info{ "Sum", 0 };
                 const NodeTypeInfo& get_type_info() const override { return type_info; }
@@ -100,9 +102,12 @@ namespace ngraph
 
                 bool evaluate(const HostTensorVector& outputs,
                               const HostTensorVector& inputs) const override;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         }
         // default opset version
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::Sum;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 }
index 28082f4..e89cf16 100644 (file)
@@ -30,8 +30,11 @@ namespace ngraph
         {
             // \brief Computes indices of top k maximum/minimum index along a specified axis for a
             //        given tensor
-            class NGRAPH_API TopK : public Op
+            class NGRAPH_DEPRECATED(
+                "This operation is deprecated and will be removed soon. "
+                "Use v1::TopK instead of it.") NGRAPH_API TopK : public Op
             {
+                NGRAPH_SUPPRESS_DEPRECATED_START
             public:
                 using SortType = TopKSortType;
 
@@ -112,6 +115,7 @@ namespace ngraph
                 Shape compute_output_shape(const Shape input_shape,
                                            const int64_t k,
                                            const size_t axis) const;
+                NGRAPH_SUPPRESS_DEPRECATED_END
             };
         } // namespace v0
 
@@ -258,6 +262,8 @@ namespace ngraph
             };
         } // namespace v3
 
+        NGRAPH_SUPPRESS_DEPRECATED_START
         using v0::TopK;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     } // op
 } // ngraph
index 44a5dd9..1f7bac8 100644 (file)
 #include "ngraph/op/or.hpp"
 #include "ngraph/op/pad.hpp"
 #include "ngraph/op/parameter.hpp"
-#include "ngraph/op/passthrough.hpp"
 #include "ngraph/op/power.hpp"
 #include "ngraph/op/prelu.hpp"
 #include "ngraph/op/prior_box.hpp"
index 17de94b..6ee0d31 100644 (file)
@@ -28,6 +28,8 @@
 #include "ngraph/runtime/reference/dot.hpp"
 #include "ngraph/shape_util.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 
 namespace ngraph
@@ -272,3 +274,5 @@ namespace ngraph
         }
     }
 }
+
+NGRAPH_SUPPRESS_DEPRECATED_END
index 99afe2e..52e37af 100644 (file)
@@ -20,6 +20,8 @@
 #include "ngraph/op/quantize.hpp"
 #include "ngraph/shape_util.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 namespace ngraph
 {
     namespace runtime
@@ -118,3 +120,5 @@ namespace ngraph
         }
     }
 }
+
+NGRAPH_SUPPRESS_DEPRECATED_END
index cb5c5bf..575a59e 100644 (file)
@@ -23,6 +23,8 @@
 #include "ngraph/coordinate_transform.hpp"
 #include "ngraph/op/topk.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 namespace ngraph
 {
     namespace runtime
@@ -173,3 +175,5 @@ namespace ngraph
         }
     }
 }
+
+NGRAPH_SUPPRESS_DEPRECATED_END
index 8f91890..a5c1b03 100644 (file)
@@ -28,6 +28,8 @@
 #include "ngraph/op/reshape.hpp"
 #include "ngraph/util.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 
 namespace ngraph
index 4c27078..effe790 100644 (file)
@@ -29,6 +29,8 @@
 #include "ngraph/op/reshape.hpp"
 #include "ngraph/op/slice.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace ngraph;
 using namespace std;
 
index 54d6aa3..5d5c0c8 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/op/slice.hpp"
 #include "ngraph/opsets/opset1.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace ngraph;
 
 namespace
index 3cbb43a..604b902 100644 (file)
@@ -37,6 +37,8 @@
 #include "ngraph/rt_info.hpp"
 #include "ngraph/util.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 62b11f9..d76b237 100644 (file)
@@ -19,6 +19,8 @@
 #include "ngraph/runtime/host_tensor.hpp"
 #include "ngraph/runtime/reference/add.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 0c93700..2b70221 100644 (file)
@@ -17,6 +17,8 @@
 #include "ngraph/op/any.hpp"
 #include "ngraph/graph_util.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 9337ca6..6df504f 100644 (file)
@@ -26,6 +26,8 @@
 #include "ngraph/runtime/host_tensor.hpp"
 #include "ngraph/runtime/reference/broadcast.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 16bfe1c..df3a0fb 100644 (file)
@@ -17,6 +17,8 @@
 #include "ngraph/op/dequantize.hpp"
 #include "ngraph/shape_util.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index eb9b579..0a4fd52 100644 (file)
@@ -21,6 +21,8 @@
 #include "ngraph/runtime/host_tensor.hpp"
 #include "ngraph/runtime/reference/divide.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 1f0dd90..fa2e1cd 100644 (file)
@@ -24,6 +24,8 @@
 #include "ngraph/op/reshape.hpp"
 #include "ngraph/shape.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index d349955..8e3c844 100644 (file)
@@ -19,6 +19,8 @@
 #include "ngraph/runtime/host_tensor.hpp"
 #include "ngraph/runtime/reference/equal.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 7007976..6b3340f 100644 (file)
@@ -23,6 +23,8 @@
 
 #include <limits>
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 163fd60..1c278f2 100644 (file)
@@ -17,6 +17,8 @@
 #include "ngraph/op/gather_nd.hpp"
 #include "ngraph/shape.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index b163194..7434068 100644 (file)
@@ -19,6 +19,8 @@
 #include "ngraph/runtime/host_tensor.hpp"
 #include "ngraph/runtime/reference/greater.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 63c2a47..dac56de 100644 (file)
@@ -19,6 +19,8 @@
 #include "ngraph/runtime/host_tensor.hpp"
 #include "ngraph/runtime/reference/greater_eq.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index a113f07..1cbd3ab 100644 (file)
@@ -19,6 +19,8 @@
 #include "ngraph/runtime/host_tensor.hpp"
 #include "ngraph/runtime/reference/less.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 6fc2757..23ded6c 100644 (file)
@@ -19,6 +19,8 @@
 #include "ngraph/runtime/host_tensor.hpp"
 #include "ngraph/runtime/reference/less_eq.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index d16cc74..e3d1791 100644 (file)
@@ -21,6 +21,8 @@
 #include "ngraph/runtime/reference/max.hpp"
 #include "ngraph/shape_util.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 3337506..b61c6a0 100644 (file)
@@ -25,6 +25,8 @@
 #include "ngraph/runtime/reference/maximum.hpp"
 #include "ngraph/type/element_type.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index eb51ffc..600da12 100644 (file)
@@ -21,6 +21,8 @@
 #include "ngraph/runtime/reference/min.hpp"
 #include "ngraph/shape_util.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 9a276eb..a4849d6 100644 (file)
@@ -25,6 +25,8 @@
 #include "ngraph/runtime/reference/minimum.hpp"
 #include "ngraph/type/element_type.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 794b6da..b97fa37 100644 (file)
@@ -19,6 +19,8 @@
 #include "ngraph/runtime/host_tensor.hpp"
 #include "ngraph/runtime/reference/multiply.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 52b5cc0..728a21e 100644 (file)
@@ -23,6 +23,8 @@
 #include "ngraph/runtime/host_tensor.hpp"
 #include "ngraph/runtime/reference/not.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace ngraph;
 using namespace std;
 
index d45d806..5f569d2 100644 (file)
@@ -19,6 +19,8 @@
 #include "ngraph/runtime/host_tensor.hpp"
 #include "ngraph/runtime/reference/not_equal.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index d532767..11a5594 100644 (file)
@@ -19,6 +19,8 @@
 #include "ngraph/op/util/op_types.hpp"
 #include "ngraph/validation_util.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index f019246..dc52e71 100644 (file)
@@ -19,6 +19,8 @@
 #include "ngraph/runtime/host_tensor.hpp"
 #include "ngraph/runtime/reference/or.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index f50f2d9..96dcad3 100644 (file)
@@ -22,6 +22,8 @@
 #include "ngraph/op/util/op_types.hpp"
 #include "ngraph/runtime/reference/pad.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
diff --git a/ngraph/core/src/op/passthrough.cpp b/ngraph/core/src/op/passthrough.cpp
deleted file mode 100644 (file)
index 6aaa072..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-//*****************************************************************************
-// Copyright 2017-2020 Intel Corporation
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-//     http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-//*****************************************************************************
-
-#include <utility>
-
-#include "ngraph/op/passthrough.hpp"
-
-using namespace std;
-using namespace ngraph;
-
-constexpr NodeTypeInfo op::Passthrough::type_info;
-
-ngraph::op::Passthrough::Passthrough(const std::string& logical_type,
-                                     const std::string& language,
-                                     const std::string& function,
-                                     const OutputVector& args,
-                                     std::vector<std::tuple<element::Type, PartialShape>> outputs)
-    : Op{args}
-    , m_logical_type{logical_type}
-    , m_language{language}
-    , m_function{function}
-    , m_output_shapes{std::move(outputs)}
-{
-    set_output_size(m_output_shapes.size());
-    constructor_validate_and_infer_types();
-}
-
-void ngraph::op::Passthrough::validate_and_infer_types()
-{
-    // N.B. It would be useful to have the backend deduce the output
-    //      shapes, instead of having them passed in via the
-    //      constructor and trusting that they're correct.
-    //
-    //      The primary barrier to doing so is that at the point where
-    //      Passthrough ops are being constructed, we don't
-    //      necessarily have the backend available.
-    //
-    //      At some point, we may want to add higher-level
-    //      backend-specific APIs for constructing Passthrough
-    //      operations; that would ensure that the backend can
-    //      understand the language being used, and would allow the
-    //      backend to infer the output shapes as needed.
-
-    std::size_t idx = 0;
-    for (auto& output_shape : m_output_shapes)
-    {
-        set_output_type(idx++, std::get<0>(output_shape), std::get<1>(output_shape));
-    }
-}
-
-std::shared_ptr<ngraph::Node>
-    ngraph::op::Passthrough::clone_with_new_inputs(const OutputVector& new_args) const
-{
-    if (new_args.size() != get_input_size())
-    {
-        throw ngraph_error{
-            "Passthrough node input counts cannot be changed for a given Passthrough function"};
-    }
-    return std::make_shared<Passthrough>(
-        m_logical_type, m_language, m_function, new_args, m_output_shapes);
-}
index 8720297..f107d70 100644 (file)
@@ -22,6 +22,8 @@
 #include "ngraph/runtime/host_tensor.hpp"
 #include "ngraph/runtime/reference/power.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 74fc615..51e24ad 100644 (file)
@@ -21,6 +21,8 @@
 #include "ngraph/runtime/reference/product.hpp"
 #include "ngraph/shape_util.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 8d379b5..bd4f117 100644 (file)
@@ -17,6 +17,8 @@
 #include "ngraph/op/quantize.hpp"
 #include "ngraph/shape_util.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 5837f9b..315be90 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/coordinate_diff.hpp"
 #include "ngraph/validation_util.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 898ad9c..08591ea 100644 (file)
@@ -20,6 +20,8 @@
 #include "ngraph/util.hpp"
 #include "ngraph/validation_util.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 60d0e4e..2c5e460 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/op/constant.hpp"
 #include "ngraph/op/slice.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index d9f4a26..251aba8 100644 (file)
@@ -24,6 +24,8 @@
 #include "ngraph/runtime/opt_kernel/reshape.hpp"
 #include "ngraph/runtime/reference/reshape.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 9a021ec..7f6a96e 100644 (file)
@@ -24,6 +24,8 @@
 #include "ngraph/op/util/op_types.hpp"
 #include "ngraph/runtime/reference/reverse.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 18c3724..7e57673 100644 (file)
@@ -21,6 +21,8 @@
 #include "ngraph/runtime/reference/copy.hpp"
 #include "ngraph/runtime/reference/round.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 45cd528..a736040 100644 (file)
@@ -23,6 +23,8 @@
 #include "ngraph/op/not.hpp"
 #include "ngraph/op/select.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 99347f1..5c28318 100644 (file)
@@ -19,6 +19,8 @@
 #include "ngraph/runtime/host_tensor.hpp"
 #include "ngraph/runtime/reference/slice.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index d343d1b..960aca8 100644 (file)
@@ -30,6 +30,8 @@
 #include "ngraph/runtime/reference/softmax.hpp"
 #include "ngraph/util.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index d80c998..e8ac326 100644 (file)
@@ -25,6 +25,8 @@
 #include "ngraph/runtime/host_tensor.hpp"
 #include "ngraph/runtime/reference/slice.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 0282113..ca8a8f2 100644 (file)
@@ -17,6 +17,8 @@
 #include "ngraph/op/stop_gradient.hpp"
 #include "ngraph/op/broadcast.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 3cb2c66..dc68cfb 100644 (file)
@@ -20,6 +20,8 @@
 #include "ngraph/runtime/host_tensor.hpp"
 #include "ngraph/runtime/reference/subtract.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 03a6613..446f92f 100644 (file)
@@ -22,6 +22,8 @@
 #include "ngraph/runtime/reference/sum.hpp"
 #include "ngraph/shape_util.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 9768e10..1353335 100644 (file)
@@ -28,6 +28,8 @@
 #include "ngraph/runtime/host_tensor.hpp"
 #include "ngraph/runtime/reference/topk.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 5a3d219..e56abc1 100644 (file)
@@ -35,6 +35,8 @@
 #include "ngraph/op/xor.hpp"
 #include "ngraph/type.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 bool ngraph::op::is_unary_elementwise_arithmetic(const ngraph::Node* node)
 {
     return dynamic_cast<const ngraph::op::util::UnaryElementwiseArithmetic*>(node) != nullptr;
index c149251..fc18099 100644 (file)
@@ -92,19 +92,17 @@ op::util::ActivationFunction op::util::RNNCellBase::get_activation_function(size
 
 shared_ptr<Node> op::util::RNNCellBase::add(const Output<Node>& lhs, const Output<Node>& rhs)
 {
-    return {make_shared<op::Add>(lhs, rhs, op::AutoBroadcastSpec(op::AutoBroadcastType::NUMPY))};
+    return {make_shared<op::v1::Add>(lhs, rhs)};
 }
 
 shared_ptr<Node> op::util::RNNCellBase::sub(const Output<Node>& lhs, const Output<Node>& rhs)
 {
-    return {
-        make_shared<op::Subtract>(lhs, rhs, op::AutoBroadcastSpec(op::AutoBroadcastType::NUMPY))};
+    return {make_shared<op::v1::Subtract>(lhs, rhs)};
 }
 
 shared_ptr<Node> op::util::RNNCellBase::mul(const Output<Node>& lhs, const Output<Node>& rhs)
 {
-    return {
-        make_shared<op::Multiply>(lhs, rhs, op::AutoBroadcastSpec(op::AutoBroadcastType::NUMPY))};
+    return {make_shared<op::v1::Multiply>(lhs, rhs)};
 }
 
 shared_ptr<Node> op::util::RNNCellBase::clip(const Output<Node>& data) const
index 2a39ed9..c21a080 100644 (file)
@@ -30,6 +30,8 @@
 #include "ngraph/runtime/reference/product.hpp"
 #include "ngraph/runtime/reference/sum.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index de2a5d3..ce3c3b9 100644 (file)
@@ -19,6 +19,8 @@
 #include "ngraph/op/dequantize.hpp"
 #include "ngraph/runtime/reference/dequantize.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index d318b1b..5f58c11 100644 (file)
@@ -22,6 +22,8 @@
 #include "ngraph/runtime/reference/any.hpp"
 #include "ngraph/runtime/reference/logical_reduction.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index b97f0a7..44a8966 100644 (file)
@@ -19,6 +19,8 @@
 #include "ngraph/op/quantize.hpp"
 #include "ngraph/runtime/reference/quantize.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index c4a2660..e317b4d 100644 (file)
@@ -19,6 +19,8 @@
 #include "ngraph/op/select.hpp"
 #include "ngraph/runtime/reference/select.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index bb78025..e6bd592 100644 (file)
@@ -29,6 +29,8 @@
 #include "ngraph/util.hpp"
 #include "ngraph/validation_util.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index f174f20..3c2b4e3 100644 (file)
@@ -50,6 +50,8 @@ namespace ngraph
 
                                 if (ng_inputs.size() > 3 && !ngraph::op::is_null(ng_inputs.at(3)))
                                 {
+                                    NGRAPH_SUPPRESS_DEPRECATED_START
+
                                     auto bias = ng_inputs.at(3);
                                     // gates_count * 2 since B is: [Wb, Rb]
                                     const int split_parts = 2 * 3;
@@ -73,6 +75,7 @@ namespace ngraph
                                                          split_bias.at(2),
                                                          split_bias.at(5)},
                                             1);
+                                    NGRAPH_SUPPRESS_DEPRECATED_END
                                 }
                                 else
                                 {
index 83a2d82..e575de1 100644 (file)
@@ -95,7 +95,9 @@ namespace ngraph
                         {
                             auto bias = ng_inputs.at(3);
                             auto split_bias = builder::opset1::split(bias, 2, 1);
+                            NGRAPH_SUPPRESS_DEPRECATED_START
                             m_map[LSTMInput::LSTM_INPUT_B] = split_bias.at(0) + split_bias.at(1);
+                            NGRAPH_SUPPRESS_DEPRECATED_END
                         }
                         else
                         {
index 9722744..b39049b 100644 (file)
@@ -28,6 +28,7 @@ namespace ngraph
             {
                 OutputVector matmul_integer(const Node& node)
                 {
+                    NGRAPH_SUPPRESS_DEPRECATED_START
                     auto ng_inputs = node.get_ng_inputs();
                     auto factory = builder::MatmulIntegerFactory(
                         OutputVector(std::begin(ng_inputs), std::end(ng_inputs)));
@@ -43,6 +44,7 @@ namespace ngraph
                                "to conform with ONNX standard.";
                     }
                     return factory.make_matmul_op();
+                    NGRAPH_SUPPRESS_DEPRECATED_END
                 }
             } // namespace set_1
 
index 6ef58c1..ea78bd3 100644 (file)
@@ -28,6 +28,7 @@ namespace ngraph
             {
                 OutputVector qlinear_matmul(const Node& node)
                 {
+                    NGRAPH_SUPPRESS_DEPRECATED_START
                     auto ng_inputs = node.get_ng_inputs();
                     auto factory = builder::QLinearMatmulFactory(
                         (OutputVector(std::begin(ng_inputs), std::end(ng_inputs))));
@@ -43,6 +44,7 @@ namespace ngraph
                                "to conform with ONNX standard.";
                     }
                     return factory.make_matmul_op();
+                    NGRAPH_SUPPRESS_DEPRECATED_END
                 }
             } // namespace set_1
 
index cb9d7b7..8d0563a 100644 (file)
@@ -65,7 +65,9 @@ namespace ngraph
                 {
                     auto bias = ng_inputs.at(3);
                     auto split_bias = builder::opset1::split(bias, 2, 1);
+                    NGRAPH_SUPPRESS_DEPRECATED_START
                     m_map[OpInput::B] = split_bias.at(0) + split_bias.at(1);
+                    NGRAPH_SUPPRESS_DEPRECATED_END
                 }
                 else
                 {
index fc69486..4457ebc 100644 (file)
@@ -20,6 +20,8 @@
 #include "util/test_case.hpp"
 #include "util/test_control.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index d3e207e..93e9f0b 100644 (file)
@@ -37,6 +37,8 @@
 #include "util/test_case.hpp"
 #include "util/test_control.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 43f3372..8409779 100644 (file)
@@ -20,6 +20,8 @@
 #include "util/test_case.hpp"
 #include "util/test_control.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index b608ddb..7c1fd8a 100644 (file)
@@ -31,6 +31,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 15f3dc8..295ff6d 100644 (file)
@@ -24,6 +24,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index cf388c6..928218c 100644 (file)
@@ -52,6 +52,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 89fb802..2eb72af 100644 (file)
@@ -32,6 +32,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index a836eab..0f9651e 100644 (file)
@@ -33,6 +33,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index cebb8c1..0dc8b89 100644 (file)
@@ -24,6 +24,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 307e826..813037b 100644 (file)
@@ -24,6 +24,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index b448110..8ad8771 100644 (file)
@@ -41,6 +41,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 11e9f6b..55a8db2 100644 (file)
@@ -31,6 +31,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index a90818b..906b77b 100644 (file)
@@ -22,6 +22,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index b58c0a6..c8f99e5 100644 (file)
@@ -23,6 +23,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 9647d98..ca84700 100644 (file)
@@ -44,6 +44,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 692d87c..f172397 100644 (file)
@@ -33,6 +33,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index c699f5e..e2fc890 100644 (file)
@@ -20,6 +20,8 @@
 #include "util/test_case.hpp"
 #include "util/test_control.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 98a8301..81730e2 100644 (file)
@@ -25,6 +25,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index ae134e8..e24a1b6 100644 (file)
@@ -41,6 +41,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 294ae18..6080e6c 100644 (file)
@@ -25,6 +25,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 63eb3de..926babd 100644 (file)
@@ -41,6 +41,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 856010d..e97d756 100644 (file)
@@ -25,6 +25,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 9fa4a1a..f9128a5 100644 (file)
@@ -23,6 +23,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index afcea21..75bd095 100644 (file)
@@ -37,6 +37,8 @@
 #include "util/test_case.hpp"
 #include "util/test_control.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index f2c40ac..9424d6f 100644 (file)
@@ -23,6 +23,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index c7b02eb..7816176 100644 (file)
@@ -37,6 +37,8 @@
 #include "util/test_case.hpp"
 #include "util/test_control.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 128320e..1977a4d 100644 (file)
@@ -24,6 +24,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 124a39d..cb403ce 100644 (file)
@@ -31,6 +31,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index a91bc0b..91ed81d 100644 (file)
@@ -37,6 +37,8 @@
 #include "util/test_case.hpp"
 #include "util/test_control.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 6530286..350dd91 100644 (file)
@@ -23,6 +23,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 324063d..53bdf76 100644 (file)
@@ -25,6 +25,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index d5b9bbb..cb16cb6 100644 (file)
@@ -25,6 +25,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index f70336e..6623ca0 100644 (file)
@@ -25,6 +25,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index f76cfbe..e36f452 100644 (file)
@@ -25,6 +25,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 1a12a73..073572a 100644 (file)
@@ -24,6 +24,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 2517009..e3bb4a1 100644 (file)
@@ -34,6 +34,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 2f9455f..914838b 100644 (file)
@@ -24,6 +24,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 04823a5..f23c1ac 100644 (file)
@@ -24,6 +24,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index f6451d3..1affb44 100644 (file)
@@ -24,6 +24,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 5a816b0..cbbb4cb 100644 (file)
@@ -24,6 +24,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index e79bed4..b8698e9 100644 (file)
@@ -35,6 +35,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 3699ed7..4d4b232 100644 (file)
@@ -41,6 +41,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 0ed5d7a..239a4b0 100644 (file)
@@ -35,6 +35,8 @@
 
 static std::mt19937_64 random_generator;
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index bee6b3c..b275b1d 100644 (file)
@@ -33,6 +33,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 15219ae..97e908c 100644 (file)
@@ -25,6 +25,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index f5a08a7..5cb82c1 100644 (file)
@@ -25,6 +25,8 @@
 #include "util/test_control.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 0692209..d9172c5 100644 (file)
@@ -25,6 +25,8 @@
 #include "runtime/interpreter/int_executable.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 4df43fa..3ed50fc 100644 (file)
@@ -21,6 +21,9 @@
 #include "util/test_tools.hpp"
 
 #include <memory>
+
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 7c45052..8c8c6e1 100644 (file)
@@ -18,6 +18,8 @@
 
 #include "ngraph/ngraph.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 99cc1b4..2cc24c9 100644 (file)
@@ -22,6 +22,8 @@
 #include "util/all_close_f.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace ngraph;
 using namespace std;
 
index 8df585a..370df36 100644 (file)
@@ -36,6 +36,8 @@
 #include "util/random.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace ngraph;
 using namespace std;
 
index 386335d..fb3dec4 100644 (file)
@@ -23,6 +23,8 @@
 #include "util/ndarray.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index bd67c6e..e32fdcb 100644 (file)
@@ -74,6 +74,8 @@
 #include "util/test_tools.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index cc67f72..4dac79a 100644 (file)
@@ -19,6 +19,9 @@
 #include "ngraph/ngraph.hpp"
 
 #include <memory>
+
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index d6c92da..fdcc98d 100644 (file)
@@ -23,6 +23,8 @@
 
 #include "ngraph/ngraph.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace ngraph;
 using namespace std;
 
index 2d5ad69..6d77219 100644 (file)
@@ -51,6 +51,8 @@
 #include "util/test_tools.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace ngraph;
 
 static std::string s_manifest = "${MANIFEST}";
index 04b383e..4d2bd49 100644 (file)
@@ -26,6 +26,8 @@
 #include "ngraph/ngraph.hpp"
 #include "ngraph/variant.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index bf35547..01747b2 100644 (file)
@@ -623,15 +623,6 @@ namespace
         EXPECT_FALSE(op::is_binary_elementwise_logical(&node));
     }
 
-    void op_is_Passthrough()
-    {
-        op::Passthrough node;
-        EXPECT_FALSE(op::is_unary_elementwise_arithmetic(&node));
-        EXPECT_FALSE(op::is_binary_elementwise_arithmetic(&node));
-        EXPECT_FALSE(op::is_binary_elementwise_comparison(&node));
-        EXPECT_FALSE(op::is_binary_elementwise_logical(&node));
-    }
-
     void op_is_Power()
     {
         op::Power node;
@@ -995,7 +986,9 @@ namespace
 
 TEST(op_is, check)
 {
+    NGRAPH_SUPPRESS_DEPRECATED_START
 #define NGRAPH_OP(a, b) op_is_##a();
 #include "opset0_tbl.hpp"
 #undef NGRAPH_OP
+    NGRAPH_SUPPRESS_DEPRECATED_END
 }
index 6f23d62..18a49da 100644 (file)
@@ -25,6 +25,8 @@
 #include "ngraph/pass/manager.hpp"
 #include "pass/shape_relevance.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace ngraph;
 using namespace std;
 
index 8828ea0..80069c3 100644 (file)
@@ -47,6 +47,8 @@
 #include "util/matcher.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace ngraph;
 using namespace std;
 
index 33241b4..8564a1e 100644 (file)
@@ -19,6 +19,8 @@
 
 #include "ngraph/ngraph.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index f1ffc61..04be016 100644 (file)
@@ -96,6 +96,8 @@
 #include "op/convolution.hpp"
 #include "op/group_conv.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 namespace ngraph
 {
     namespace runtime
@@ -1251,7 +1253,6 @@ protected:
         case OP_TYPEID::LSTMSequence:
         case OP_TYPEID::MVN:
         case OP_TYPEID::NormalizeL2:
-        case OP_TYPEID::Passthrough:
         case OP_TYPEID::PRelu:
         case OP_TYPEID::RNNCell:
         case OP_TYPEID::Selu:
@@ -1311,3 +1312,5 @@ protected:
         }
     }
 };
+
+NGRAPH_SUPPRESS_DEPRECATED_END
index 64057b1..727daad 100644 (file)
@@ -23,6 +23,7 @@
 
 namespace ngraph
 {
+    NGRAPH_SUPPRESS_DEPRECATED_START
     namespace opset0
     {
 #ifdef NGRAPH_OP
@@ -33,4 +34,5 @@ namespace ngraph
 #undef NGRAPH_OP
 #endif
     }
+    NGRAPH_SUPPRESS_DEPRECATED_END
 }
index 337232a..6f8610e 100644 (file)
@@ -112,7 +112,6 @@ NGRAPH_OP(OneHot, ngraph::op)
 NGRAPH_OP(Or, ngraph::op)
 NGRAPH_OP(Pad, ngraph::op)
 NGRAPH_OP(Parameter, ngraph::op)
-NGRAPH_OP(Passthrough, ngraph::op)
 NGRAPH_OP(Power, ngraph::op)
 NGRAPH_OP(PRelu, ngraph::op)
 NGRAPH_OP(Product, ngraph::op)
index 2c41b84..2ce39a0 100644 (file)
@@ -28,6 +28,8 @@
 #include "ngraph/runtime/reference/range.hpp"
 #include "ngraph/slice_plan.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 676fcdc..925160f 100644 (file)
@@ -23,6 +23,8 @@
 #include "ngraph/op/util/binary_elementwise_logical.hpp"
 #include "ngraph/op/util/op_types.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index c7362b6..d6d5e84 100644 (file)
@@ -30,6 +30,8 @@
 #include "ngraph/op/sum.hpp"
 #include "ngraph/util.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index dae8374..664f5ee 100644 (file)
@@ -36,6 +36,8 @@
 #include "pass/implicit_broadcast_elimination.hpp"
 #include "pass/opset0_downgrade.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index b1366f4..8b20cfb 100644 (file)
@@ -30,6 +30,8 @@
 #include "op/convolution.hpp"
 #include "op/group_conv.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
@@ -536,12 +538,14 @@ namespace
 
     DispatchMap& get_dispatch_map()
     {
+        NGRAPH_SUPPRESS_DEPRECATED_START
         static DispatchMap dispatch_map{
 #define NGRAPH_OP(NAME, NAMESPACE) {NAMESPACE::NAME::type_info, op_cast_thunk<NAMESPACE::NAME>},
 #include "opset0_tbl.hpp"
 #undef NGRAPH_OP
         };
         return dispatch_map;
+        NGRAPH_SUPPRESS_DEPRECATED_END
     }
 } // namespace
 
index 769e58a..6a8e91c 100644 (file)
@@ -19,6 +19,8 @@
 #include "ngraph/ngraph.hpp"
 #include "ngraph/specialize_function.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace ngraph;
 
 // Simple case: create a function with static parameter shapes and "specialize" them to the same
index 0cc9b75..650e5c5 100644 (file)
@@ -27,6 +27,8 @@
 #include "pass/liveness.hpp"
 #include "util/test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 3ad346d..785548a 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 372c32c..564c2e5 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index e93b7eb..90af443 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 75b1bcd..2c55ddb 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index ec733b8..eb2b07f 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 06ece97..de1401c 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 3da1fa0..8fefa9e 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 59608d1..43aa830 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index e2f32ca..7d38999 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 493b840..ee7cfbe 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index bc1f581..b0ad9e3 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index fdab219..bbd139f 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 92c0fef..b236104 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 40cb9c3..a689ac4 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 51edd41..1213654 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 46611f9..e70cff0 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 139c690..b18e8da 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 2f5cbef..5c0e4a6 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index b637c9a..4e1ca95 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index bbe1e9a..a9a9964 100644 (file)
@@ -18,6 +18,8 @@
 #include "ngraph/ngraph.hpp"
 #include "util/type_prop.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 563d095..5dea007 100644 (file)
@@ -31,6 +31,8 @@
 #include "util/all_close.hpp"
 #include "util/ndarray.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 2887b78..89f951c 100644 (file)
@@ -20,6 +20,8 @@
 #include "ngraph/util.hpp"
 #include "test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;