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 014811ce0505713cfaaf4b4fc42378419f744c77..3f37e4bff7213669e6d210727ab585c7de47c02d 100644 (file)
@@ -25,6 +25,8 @@
 #include <ngraph/log.hpp>
 #include <transformations/common_optimizations/nop_elimination.hpp>
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 77dea90d9bc92a6e8d34b924be2d12b92d2577f7..c496332dc127eccb183fb551718b755972cd0719 100644 (file)
@@ -20,6 +20,8 @@
 
 #include "common_test_utils/ngraph_test_utils.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace ngraph;
 using namespace std;
 
index 457b145d46bb7f2ff94c110374e8f53789e4491c..cdec6a5206c3173c81a853c261649fdc254471d8 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 15a8be8bf56927ad1f0d4ad6fe226d0470179c8c..0132e99c48cafccb3bf1a212bc230f7ad3b0e621 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 43bcaea876644ddf0504708e5b0e8fee2337fff4..4e78082efffcd7457ff2b747ea344cb0be0c199b 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 e2bce38fc5a92268f01da7b8cc5c79799805f7ae..b3aecadf7a60f8a6cedb05fe7bb775ef7faf71b5 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 b6a6d6d671b6c0345512d3756552417ffd40ddc1..73a4824d8016985469c44ce01745995736ef5189 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 cc99597bc7913e4c8bf36d1d3aed1973f4512260..d1bb405d9119b97196f4a55a94d8488eb9d5d1b0 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 42703a705c78b0063c08c884bc56646e6939f077..f701a14b381dd5a964747c186c11825a35e4db1c 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 3f3040b475cdc9dece80d23df51b9b4d744ec368..32e24ee28dc59358307b83f6e3cfa5f11fcd381c 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 7b1ac75dc87e9e8599e48ba48446d84383fa54a9..36e6aaa52f3047e78136d78dec7c7bc91fed8659 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 a049584f155848a92ddcdb7c9fcf7de9e918ac7b..66361913450ceafe4ffdb33b025743f0a6f0b7f5 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 d962ae4dc1dc441c7eb89d69858cd499670b6b46..bbb7255c199e22cd1291ad31aa490c5b0afee884 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 bf371127612a8e17bc9267c01b94b1be6694fe7e..5d723597076ee9affd5f69cf263cea796908bdc5 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 f905af0f398ab535689f1c476efa1632117ea73f..adc9dea764f178156cde51ff90445bb72415d995 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 c81eebdce5983e2d4dcd8a50f5f1ce43c93794b7..8cc0330f7b96109e9f447db72dc2ec8a1ce6bcfe 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 6c52dccc7c44937b357ad0003790ea15bdde1f53..548463d74a88d3c493d52dfeb8f5d1a1bf46136c 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 6105c5a0d9065f5de3b17cb7f9964bcffd2e587f..56b5e7f9d402f3024f74d0fa348974fc3eb7b0ed 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 94afc112f81a36139137c1ab2610eae5a6d5daaf..999d972575f3c68552d880f58207d7e7c4e93b02 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 189e975548516fcb00f55d9e3c3523703cd09cf7..c2d13ef550dee1567e1ff22d1649f66837d61fa0 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 faa9bfff67935b8858a90ec07822db4c6ddd00fe..438e7a0313c2e07fe077f73dd375068ba0a90f0a 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 b373f8ac9726595a2f88ab7e03a4510de339e040..6a111bfb8aae8e454b3616870f21f8d1f03e142b 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 174ca24e1538e2a02138a83d3796ed5bdd7d6f30..3611fa0fa79fdfc38c9cd41c242d53cf0f563717 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 8d36b60caba0eb9deb3ee81643e465f98ee8f7cb..b685adea0d7a5b0aa5d2d7aadaf1487258efcd33 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 63f3283b0120a3de0c8e0725cd0cb2a49c9f9707..be33b169cb80c520e00843e9b0ab3722544a4014 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 eab912051b11885856277529f654f6bfdbba17e5..19ccd637bb631b64f81fa665a2d0e5cb64ca7075 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 689f37230b5f57f3334ecd4c06c19c26acebf67d..ef668e89ad779fec0f06a899940776416dab52fc 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 d4babea3e30eddd0f454710ffbd3555672b8fdd9..2730563b1699c4e8b15ed8e12a248d6109693de4 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 4f3abac561f827906773e9cd089f58de4ada361e..5c932e122f8009f4bd662cc98014a53991108b02 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 099e1ba507e13c60e885b585b3c2a08e22fa01cb..00f94580f74a3eac14b353171cdde92aa9b95a13 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 dd3cc872b090af33c5fb587005d9f00d2e3eeec3..6eecca88d84f746707e3783e0474873b5bef060c 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 cf7d7119b24d156139e84eecd2ff6c7b82b0294a..e560f1d9b646d973bca6fbb2c5dc3f6fa210e54a 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 f0bc93fc2723903911c79b28f2e95e0f49f9a63d..5afca023cb72a6dcd027e1ef7847cb97a8d2dc48 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 486cbf194f1fd6e02dafaa80f35782c5a5ecabe6..35913363188446ad06af985a618a6d4d0291c790 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 b04f1b067f51db1d7e8f71e7d7789b70acd1a2d9..a70e155e726225b99de836b7d3803b7b0c802148 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 2b85536ea6fb0d11da2d7c4499d0ff5f0140c051..aefa176f63bd666825cbc1d9455d48824d38f0da 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 f6b2b17958029c4c1372620e3a7506e89e5acb48..442036ec0369c1d687583524b932952fa8d99297 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 1461079ca6c1875f1af80f6f90bc565670d24b91..221999ff17c04d30134cc2027d546a2207bba8a6 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 4215b1ab84d2d063095a0e12ba3e22201ddb7906..8e37ae130cf07c7a57f1db9da4deb0b0ea357328 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 1faf15b2316f2b1c5daee626f78be4359f945175..06b9bfbfe2b284f09801e1533bb2b2153d6e9714 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 22720a75d3a4d89dd24bdb6347cece1fadd0031d..0cb0104788292a314fd2b67e9c10870c216a0699 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 00cfb69ca3e560c3568f95572335e8ba09276c7f..fc5f652681ecd459cf18a6a283429ba3deda1174 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 7387987b1f728fa561c96c1a31db25111610227c..a0cd41e211d2a9e73a930af0bfeb350b95be02d1 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 54a03f48db4eb102a4e4efb4aca611b34a7b8ea7..057aa9aff08fe20da66314e81fad29fe5b0e7784 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 a5335e740d13672a58ba15d4f4004e13a14abf73..5e5a0f121118ea8b3247f7ace45f0ab2d1953f71 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 f05b5e5ddbbb8ff1e148fde9931d479e3375e520..8df075888e03f51a8ace36f5aff31a0bcce21317 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 28082f413922f20e6b736bc51160d102bab0a24e..e89cf16634963a139af202279cfdbcf576b0c21e 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 44a5dd9e3ef1911ff50f09aaa136ee9adde40d36..1f7bac8660268d54406c28e4308d537a188112eb 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 17de94b12c566ce032031bed3d1908d651722975..6ee0d3146caef944940ac2404665d38b79cec391 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 99afe2e0eb7128426875ea475b3f466f463090c6..52e37af0850ac2a2b3907841042584d0dcc5ed48 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 cb5c5bfa2bebed9917ccc615d970518f4c2a6fa1..575a59e2895e6c9fcfb8fce01bce0c25d5f18ee9 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 8f91890275ff4e09909e93f6a212c885000d26a5..a5c1b03a527e147e91954f3b0e331084d040524a 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 4c270784f1c9e330e87052b33231139128bc5fee..effe790c201d953850c4144e3c9f5588bfa09a34 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 54d6aa350f1821d88b20b2cefbb77095e9127058..5d5c0c86a806009f205a75a99e25e75d311f74b9 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 3cbb43a9b9d5201ba20bb28e929c2d9bf45ff041..604b902fb3faf3b7194eb672f8c59ac4a72d85f7 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 62b11f9bea9cc156c268e08ef9b77559fe64a627..d76b2371fbbd5501022600cc65c367d729c830f6 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 0c937005aa17b1fa905be283da89243450e63afd..2b70221ac6cbac03ae25d2261d5c6877126a229a 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 9337ca681c8e3ed5e2858aabb67b9eb99a07a939..6df504f504eac3e138f61ae58c701980b1ea8f80 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 16bfe1c78cdd28cf1d5e4a05b85cb4cfdd711841..df3a0fba7889732c607869751c55668007956dda 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 eb9b579f3d13d33a2c0af624a274a39e05b53f7e..0a4fd521b26da0c40cad06fcad68574eb262ad65 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 1f0dd90162bdee544198b93ec4a8892b4cddcc01..fa2e1cde3484ddb07cbebe62ace0a714c9560dd7 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 d3499557def2e48d5ab7468223daa6aced0536e8..8e3c844ed54903e5822e39373d2b4f4f86573018 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 70079762e676a33771c44f3d5719fb8bbe3e868e..6b3340f3b3b0a54ec95c2d2e13f357c47d1ff623 100644 (file)
@@ -23,6 +23,8 @@
 
 #include <limits>
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 163fd607cc6334b6daf0b4841127cd18fd177eb8..1c278f268f45f16c21bf505a93c2126ce56e8b92 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 b1631942240187a0b0b71a0179d52bdb67076588..7434068638983f25af71611c891152019c490706 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 63c2a472ce7c90ab0e691451996621ef976a9f39..dac56de2ddb66ef331f18248185cc117dd033421 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 a113f07cd49e7d89e54fba735825d02420158229..1cbd3abae90fa13cd02d556ba56a60ccc9c9fa26 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 6fc2757b4690689146fffecb1d1f9042b075ce4a..23ded6c7c290819adf9e99ec7969bdde11c6f4d3 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 d16cc741a075eade0e9951d89af2172aa7b4856e..e3d17911ec399b34d18655074353999d299cf786 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 33375065021f5377ae94c19a5042696d0950e8bb..b61c6a04fe6cf5d13bad1c06415933434f90af26 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 eb51ffcdb3d39dd0414c8a9b7ea0636a4a8158a3..600da12dd23cfb3f34104698f99ba6c383457980 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 9a276eb440d7cf6307cb69cda5f44d6e73443d15..a4849d6d96a3ba1314c494b2c3d007485463ef01 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 794b6da702dcfa891f84369621498a21629b5a93..b97fa374c14ac245d347946112cc24381e1bdfce 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 52b5cc08b343b018130dfee9956a57a96f485779..728a21e25202ac048b7c4a510d84a58c9374906f 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 d45d806030680d0e96d5e2965e38217e555a473e..5f569d2119d147edf4b61f7d3cc9ec4ff03fa7f7 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 d53276743f80cf79b4dd4e4bc94c736e21c5c01d..11a5594e521c8d9a890e7d4e5cd90158b0c7ccf2 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 f019246a0660c77450501feefb7ed833f46ab0cc..dc52e71a8bc97d9f00e729e22757902b717c394e 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 f50f2d971f5a3a60ed50257ba430574c4f4070e8..96dcad35a8e02108a0d1cd8a98870e1dc2b2ed90 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 87202978611d88028194304318554230e38daf0e..f107d70e3da641eba4406cd83b826c8170492f6d 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 74fc615737cd7cdc516af098c3212fa18ff8ef06..51e24ad445e63e54427b5541c751495a5692446f 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 8d379b58b35e75d6aa5d88c29d31d2099841dd3b..bd4f117a448dc354f1b592369ca541b83ec8e25a 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 5837f9b718d55e72c89260838772919f00b9c82d..315be9077517bee644c5cdd87507011ac8299d5a 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 898ad9c6adc68bcbc92ed92b1554520226e2b8aa..08591eaf8fb23e71ab7816376bdee088923dbf0b 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 60d0e4efe3c96bc0b5e0ad0538ee2f7fd7920825..2c5e460d73a7ef8a6adb949344982682bf89d2a8 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 d9f4a26fe83bb4d0a6da3fdadc0cab2a63357e23..251aba87e1e7924a6244e9a08818734b191ec69b 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 9a021ece107c6bc4f3904b9bf97ec8073805324d..7f6a96ed8db3d20a121c713bf6f6943cf4b242bc 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 18c37243562b888ef375a55387120a4f6f24ff03..7e576730f9ea3f800ae795def36cf75fd155a51f 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 45cd5282dd76140611cf17b07b9705094a82bab5..a73604092426d86568036fd00929b7e0d02f0c69 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 99347f1b04d74e050803aceacc30f51d5e958099..5c28318bee7ef95c2f3a53e55d9ecac3661d34ea 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 d343d1b16592b04597a8fcbffb871a1510ce3c44..960aca8019e782bbd635f9c3b58f41af44e7192d 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 d80c99898184c7e8c81c1d90edb44e450cd2ddcf..e8ac32696883ad7da5ada5698d7c3f142b15623a 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 02821135cf9a2275bb0b414ed5f83cdbab07b34d..ca8a8f26adbb6dd6d73dd36e2186fcb48215300d 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 3cb2c66b6f217ab4423f2c4c8501350026cb922d..dc68cfbc9664cd3b173786c5a96721afd74bb681 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 03a66137f2c7530b662f7f27f4b3ea9795914b6f..446f92f4cb58105d9f5f88ae71d40f62df7a61a1 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 9768e10257eff694959555930ec2e9b261f49ce5..1353335e762131e21d85966dcca0aa246b2652a9 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 5a3d219a36bc658a1630d31afe9bdf4a664cfdf9..e56abc1275fc6d3abd9777e1a976a8b588c923fb 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 c149251618012057b3f792fabe8b13be6d46bb16..fc180998a864bf45b23fb8f0deed1db3adba0f01 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 2a39ed91790a6d20a5dba9e9c24cfe0ad43fdf0a..c21a0806d0564e5e0464423abf7b29d9096bf1e3 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 de2a5d34ecb8a51f94eb4ef806617cbf7bec6974..ce3c3b9f26c9dd477b894052d179d78947a427ee 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 d318b1b0800bc46ec91221fdeafddd92d1b6e8da..5f58c11078831b7dc6aec88473d1c7c365202723 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 b97f0a7c0b3fdda24427f0687b5c223f8741c4ec..44a8966f45fa7a673dad49186e5e3362c0d55764 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 c4a2660b4271f3ff325e853b5b7493c12b94b4bc..e317b4dcd15bf6dc33eec057d8185d8ffd43e526 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 bb78025bb75dd34b18a5047ce0bf0357f548a0c6..e6bd5926b678eaf34e8f2f621a29975670414f6f 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 f174f20a43cdcd2a0c7dcf7aaf6f2e8fe7026251..3c2b4e30a72d33c9c17011d7cbc933ecc8e4f3b8 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 83a2d82c48f4c5461cf4edd877f52152e981e758..e575de1a59070554bc064f4c18f70d2931710a92 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 97227448f854bf05a62f130aac22cdd5df71dfbe..b39049b9935d173d7e165da7898141c8b30f69a2 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 6ef58c12d3519516e5ad8c13e6dc99ed57b081a3..ea78bd38b4866706927e4a790d4bb1cca12dd22d 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 cb9d7b70353ec16baaada962d60bdb949b978b80..8d0563ac3db7ef28d04059cea2762157960bbac4 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 fc694861de063e99c2a1dfb24d7a4063f0969dfc..4457ebc647bee2d375efa4ab62c09cd3a54bd127 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 d3e207efe5195ef4921b9355e6b84a26ce7e3c46..93e9f0b591644deac004ca38f62f9114e208a95d 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 43f33729b3b17e1f1da908ef7d03734b0f3c8302..8409779339ebf472041ba379f690f49b07477ad9 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 b608ddb019c4f138b7634898f479b2bfb62796af..7c1fd8aeb8db0dd6162a6e79db20cdec23e46aba 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 15f3dc89a9fe4a0e36ce66588490a27c3082016e..295ff6dfe7f1ab7da0ea9b6f33ad1ad51bf83150 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 cf388c67119dd5e0f7159c7f9545dd4cb6a792e0..928218ccbf9e3b5c56ae41b9606c18801d0309b7 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 89fb802ed9f65e959819eea1892b9081278cdf9d..2eb72af2bbfd1b7f86a072f2112539f2e5c712fd 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 a836eab4fc0b8e8dd636277114a1485f93c5894a..0f9651e3c1ecad50634423f2b643e41967d88acf 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 cebb8c19c4c088e7658d5e724ad9187120e1d457..0dc8b899efe78b08b21eed8867ee5d69fc69604a 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 307e826322c1d6f182b8afc6b9f1ecbfc0a25569..813037b0d00954c46c030b35fc1a82084e15400b 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 b448110835d92c69e9c2d17b46f88727d964c331..8ad877117e009feaa2a31e31c69812644be87e5e 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 11e9f6b34b51f0d1c64bb397721e653d06d68d52..55a8db2439ad30eac203e7d3f2738a506655b3ef 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 a90818b33acc4e3d85a721602fd7e0347a10c7e6..906b77b55a13752df7cd585debffc4aa3a82c3e2 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 b58c0a6767b239f64f6883ddc7a3e6873d00d557..c8f99e5d179426840e39ac3e2253f3af4f772996 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 9647d9898c8261f465fd96e62ee828adba2876c7..ca84700763f02627ca9db697bef444f9d4fc016d 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 692d87ceb6ef16f8c1fd74eb294cb1b8433b5d36..f172397bd9c037e4be0c0416248b335c2d590f2f 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 c699f5ed273f4fdf968b16b5053955490b690e76..e2fc890240d8bbf15c8586cca1e1501842b0a846 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 98a8301391aea6a7db3c4b3509ca76fdf41369b7..81730e26ec5151e37c96220fd02b90877903d7d0 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 ae134e8a215d79a0478cbbd6a43ad97d5de964cf..e24a1b6320e5acb9ca2b0712bdcfd3787a40c0ea 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 294ae180d75b80779a2b80a9c9af729c741f1de2..6080e6c890fc1c93c54c5ad8b65260708b62916f 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 63eb3de7bc0a6c24655321813243ee7c9713b0dd..926babd5b325e5f8acde4dea8d8ab5b17366ecb8 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 856010db513f3f0c4952e408b91cffc2590a329d..e97d7560f2676f29b64596a8a17fe65bfe2865b7 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 9fa4a1a6eef3e614034624a96234b79ea620b892..f9128a5bf93f7fbcd7e0f614111533382a0954de 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 afcea21a36c1d5e5d85dd09c611e1f4e8612d373..75bd095480576c89a558f50f9cc7229d36e24d7b 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 f2c40ac958e5734646a9c17bc186c61c0e02f164..9424d6f7363589bc78fbb2f6a8a58b002b10b92e 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 c7b02ebbf593af03b20616da8889f5b8ec3995a8..7816176d03876f8b2fe68becaf05bcaa827d32e8 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 128320e6680adbe35f01cf6f5696bcb15f564719..1977a4d4a76626e919a12d8b443cd3cfdfd4fde4 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 124a39daf0f06226ce14d4f91fe6b1f8dcf2540b..cb403ce033bb33bedbb036259216123790530284 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 a91bc0b89ad766c95af844dd4a2f5a7d3dce741d..91ed81d89a68e278a53aa3a73a058e27618c1dac 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 6530286b8f5826ebe091c344fc491e30d3093927..350dd91e9d86f6f67100083aa2b3702eceda51d1 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 324063dc8d6f6f34d31cef95d1c93d8da9be64ac..53bdf76e186a97d696122b5475d98a619c6966b7 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 d5b9bbb7386468c4ca89b660c2db2b8064c11425..cb16cb62afc347bea10502c535069a9b970b5ea0 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 f70336e38266177840d2de71097ba27cdddf063d..6623ca042df424273acdf1a0e462c7c3fa0bb420 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 f76cfbea7a51fb5d75e84c253dd06c755c34b8ee..e36f45240f56fa6934a1e6b69f4fa258eaad0a85 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 1a12a7372000710a2687452ef0d2cbacc89d1144..073572ab419d188172df3940adfa2cab938b1eea 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 2517009f96e2e35beb7031f81f00269a3bace169..e3bb4a1deb2be3500bed807221e1eedd8679f0ca 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 2f9455f3234c54cf223557fc4c73294de63fe251..914838b4413fbdd7b9526caf4c88506d4119b27a 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 04823a5f31666cfa26fad1010d2984c895c86c8b..f23c1acafdad4fd6e4b5bde5b0f24c827b0fc655 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 f6451d340a2d38d918e31166fb258739e9f2f70a..1affb447e0320fca08c46dc3aac748bb59ca7143 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 5a816b0f8488eba00c4e14115184e645bff6adca..cbbb4cb001bf7201249aacefca21cff736d4bbac 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 e79bed49d86dcdb663076e5633eacb7d45f2fd39..b8698e92943da7ab2cc44a436bf87a6d582f5c42 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 3699ed7f9449b79c82d5212c0d79a649dca4b321..4d4b232f817423df5f3cbae03c6ef509ae7cd9ed 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 0ed5d7a10eb8c4d95eb8a750c23a18b7f9dbb649..239a4b0b94a4e4413185302506f257df65e50b0f 100644 (file)
@@ -35,6 +35,8 @@
 
 static std::mt19937_64 random_generator;
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index bee6b3cb002036dcaba67f8dfeac122245f20d27..b275b1d97821eafdbc86a9d1bd92610012018b45 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 15219ae3c6babd2e12c6b610370187a67f4f7e9d..97e908caa84ad599c4fdeee2836bbf5de9924a73 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 f5a08a78bd1a3100bdac8b99a240ea06408ae45c..5cb82c1b52385c8cf26691815eaf65c1da0b03a0 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 0692209f5f7734f5063c8bb6e0b69d38d58a4186..d9172c5a773e61557bec2ad21c43cbca165e7d08 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 4df43fad150baff5238fd1a6b47b20e295061ef4..3ed50fccf1595d179619b62c4677a74cbb14b149 100644 (file)
@@ -21,6 +21,9 @@
 #include "util/test_tools.hpp"
 
 #include <memory>
+
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 7c45052d056e7e410472e487986fe1e3363d9553..8c8c6e1aa1a4400610f0724a2ac93cb93ddfb564 100644 (file)
@@ -18,6 +18,8 @@
 
 #include "ngraph/ngraph.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index 99cc1b4fee90b644d231e4e8a92205659f7a9ea0..2cc24c9cb703c7b962328e99bfb6a94a6e403259 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 8df585aae24f6ca6bafda6279080e27e14403e79..370df36e5db102e1a6833a53ad0761de1dc49ef7 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 386335d7f285407962186581c1fb572adc7b1dc2..fb3dec4c13fda23d87c24f490b9881f7820c268f 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 bd67c6ee73f0b7707c24ac74cbc4fffd019d3226..e32fdcbe40469b805b60a736e7f63e6589c3bcba 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 cc67f72df1de54acfe355ece9bf1c7e4488c82ad..4dac79ae7a05a4c693a1e59241bf613716ff0761 100644 (file)
@@ -19,6 +19,9 @@
 #include "ngraph/ngraph.hpp"
 
 #include <memory>
+
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index d6c92da7cc3aa7fc4c467917acda2ae31b5f4538..fdcc98d3ff5b505ed29ebf70f328282aca28ab59 100644 (file)
@@ -23,6 +23,8 @@
 
 #include "ngraph/ngraph.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace ngraph;
 using namespace std;
 
index 2d5ad691f52c12a35e0191a60bb30cd26bccc0e5..6d77219988cb2ef4a6e360a1f751e4c64c1e6264 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 04b383ed799b33099d99d2d9852f238967e11acd..4d2bd494aca419dc05e09d6dbb5aa1a8b41cc2c3 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 bf355471843b16bac9db406d881f0759e7b5f043..01747b2a1c663f9d496fb02a357e0372f65f0bc7 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 6f23d623587bb8416357f5167754b559e6f90fb2..18a49daaa04005fc9616368d058077d2643414bf 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 8828ea026767dceb237a1080f93b12e124103414..80069c38f94cf6ee55dedbb11e3877bea8ed64f4 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 33241b48da5dd98d6f17040cf1914f9c7fad94e7..8564a1e1c9920d852d5a3ad2820fd7d3f467be18 100644 (file)
@@ -19,6 +19,8 @@
 
 #include "ngraph/ngraph.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;
 
index f1ffc616353e85da4b19069a9795bc032d8906c1..04be016c8b17952dadb5d63a9a9d66f808ea99a8 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 64057b116be3f8cb79f838416c4c7d4be645215f..727daad8023167ec8e720b88dd0ac6a78f93d5e2 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 337232a5fa4d1dbf48bb218cba80d5bbdb068b61..6f8610e25a6fbe8cc48ac33f4112d9f32c2b7992 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 2c41b840c8ecfb10ec5c856f2f2b2285c4d4fee2..2ce39a09e769a1370d953e87214b0f113dceaf44 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 676fcdc5b9787680ccfc4a49dfd315860baefda3..925160f84ba7be906e45bbad970a09a4af1f454a 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 c7362b6b8d037a3c6a5e3a7f442ccad1c00e8aa7..d6d5e84833922111a92d619de8cdfaa1db9ce9b7 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 dae8374249a97a2f1def83b5492674215e63be03..664f5eef63db9cf318c9db66a2b6d30989639fa0 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 b1366f47667d174a26af41e2cb208a7ea4145cdf..8b20cfb9624e89a7c8c5ed0904a9077124361e15 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 769e58a3dd89d0dc302cb2be17d2d5d64426bfcd..6a8e91cfb6585e5c38f07c2337d2dd205a724e97 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 0cc9b758ac2b92f480953c128ee98bfc0f17f448..650e5c5ffad61a296c3788d252d76909a7287e96 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 3ad346d9e2d69fd6b9c8d44f746b65a3c226ff03..785548a39919a1f2e853c656f98a15ca8ae2faa3 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 372c32ce44a37db447396ec4b21116ef7b3fa44a..564c2e50b57a170d2be2d96f3cc790836863f067 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 e93b7eb067fee0e9197e76fb1e54afa08128a1b5..90af44367362979a35f4213ce53c774ac40d81af 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 75b1bcdcb8889c02d7de7780d5f07ebf303687bd..2c55ddbaab5634ccb7564ea7528ab86feabab221 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 ec733b89f5de8b28cb6d9c04c50b7496a5da4c72..eb2b07f3a2bbeeed74a02036048c41c7d73e8393 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 06ece978798b71fe97e50cfe6ff08d363bf6b163..de1401ca2170577247e4ac20247aa25d6e4fb76b 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 3da1fa05a20c781a293b53283b8c666d8c0c7633..8fefa9eb3f72101793988716b81a4dff542d6a7d 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 59608d15e723dcde21a9f19597f02cea611e1413..43aa8305e97127bf2564a687cd682b5c0a00e0d8 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 e2f32cae7f056493d3c2c370d8ff319367b27829..7d38999c4b171595a619384af1a5ca1e7a96b15a 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 493b8406749c2385ae3a2389ac66cac9d0bc88b5..ee7cfbebd5d77ecceb52f72d5ff988820171e46f 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 bc1f581ac674586cedbd63d86d5d0357e37008d3..b0ad9e3aaaf5158f12c3eb5d3d8fa4a48f36bd96 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 fdab219aa22d0609c62e9f062b611061e16ea2f7..bbd139fc76cad1d9447847d19e43d8505f18285a 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 92c0fef95805ca59d22889efe3551f4bf0f0f85e..b236104996d72b4a086298187e7cc6dcf99ad6d0 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 40cb9c347b393236486be02d13252d0ba3c2513d..a689ac4cb5ae48a33a8cccde92e6657a9d6f2f72 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 51edd419312fd4377f156f4715da7038c1ec161b..1213654715698576f26d10a5d36268efc5f7771f 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 46611f90f73650e11b042e7c71d151034618ecea..e70cff09043ce07f13249a982e42499fd20a231e 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 139c690f78d2f8f277cc9d2b7214d5bc05721c87..b18e8da761915c7ebe1f6cde0ec3e93b4552d1a9 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 2f5cbefb50058a76210d84f62245be19a96f26fe..5c0e4a66a45a94a6f66899409d010ab6acb0e734 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 b637c9a1b6be1f548e918514870852407fcc352e..4e1ca958713bbeb4e7132d7206080ed9aba85c02 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 bbe1e9a005ea8566ac375a5d3f5f8161c3611599..a9a9964eac1a3e7e577808252d6be395c3ff2063 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 563d0952e71a98c3b807c2eba02d983bf57a29bc..5dea0071f5abc903a8d53adb50d460bed7ca977c 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 2887b786f1543d878ec9080992c19e784b774140..89f951c06b8109d485f8070bce557f8c8907d5c7 100644 (file)
@@ -20,6 +20,8 @@
 #include "ngraph/util.hpp"
 #include "test_tools.hpp"
 
+NGRAPH_SUPPRESS_DEPRECATED_START
+
 using namespace std;
 using namespace ngraph;