21 #include "ngraph/op/util/binary_elementwise_arithmetic.hpp"
31 class NGRAPH_DEPRECATED(
32 "This operation is deprecated and will be removed soon. Use v1::Add instead of it.")
33 NGRAPH_API Add :
public util::BinaryElementwiseArithmetic
35 NGRAPH_SUPPRESS_DEPRECATED_START
37 static constexpr NodeTypeInfo type_info{
"Add", 0};
38 const NodeTypeInfo& get_type_info()
const override {
return type_info; }
41 : util::BinaryElementwiseArithmetic(AutoBroadcastSpec::NONE)
55 Add(
const Output<Node>& arg0,
56 const Output<Node>& arg1,
57 const AutoBroadcastSpec& auto_broadcast = AutoBroadcastSpec());
60 clone_with_new_inputs(
const OutputVector& new_args)
const override;
62 bool visit_attributes(AttributeVisitor& visitor)
override;
63 bool evaluate(
const HostTensorVector& outputs,
64 const HostTensorVector& inputs)
const override;
65 NGRAPH_SUPPRESS_DEPRECATED_END
76 NGRAPH_RTTI_DECLARATION;
95 Add(
const Output<Node>& arg0,
96 const Output<Node>& arg1,
100 std::shared_ptr<Node>
101 clone_with_new_inputs(
const OutputVector& new_args)
const override;
104 bool evaluate(
const HostTensorVector& outputs,
105 const HostTensorVector& inputs)
const override;
109 NGRAPH_SUPPRESS_DEPRECATED_START
111 NGRAPH_SUPPRESS_DEPRECATED_END
114 NGRAPH_DEPRECATED(
"This operator was deprecated and will be removed with v0 operation.")
116 std::shared_ptr<Node> operator+(const Output<Node>& arg0, const Output<Node>& arg1);